This reverts commit 80fee9d.
Since actually using showAlt, showBalance to determine if an axis
should be drawn is incorrect, since although the user has selected
it to be plotted, it might not actually be in the ride !
The real fix for this axis labels was fixed in commit 18bf28.
.. was caused by the fact the allPlot height is not set until after the
first show, so it is zero in initial state. We just use a default value
in this case.
Added a few new training stress metrics whilst discussing
and working on a multicomponent view of training stress.
This is all a wip falling out of discussions around stress
metrics beyond the old TSS/BikeScore models.
For now this just includes;
1. Aerobic Training Impact Scoring System on PM/PMC
2. Work (Kj) above/below CP on PM/PMC
3. Aerobic TISS on the Ride Plot
There is lots more to come; specifically around Anaerobic TISS,
looking again at polarised training and personalised training stress
based upon the individual's CP model.
.. Following on from the recent update to add acceleration
this update adds other derived data series based upon the
rate of change.
.. Added to the ride plot and the CP plot.
Not sure of the overall utility of these updates but bear in
mind that they are targetting sprinting and track users and
analysis.
As well as the positive side of this (development of power
cadence etc) we also want to think about and collect data
on fatigue rate (possibly only power and torque)
- fatigue over time
- fatigue over pedal stroke
.. When you click on the axis to isolate it a spanslider
appears to let you manually adjust the axis.
.. it looks naff .. but we can tidy that up separately
Rather than skip over the 'standard' interval markers because they
have such verbose names we now plot the vertical marker only.
This is to indicate there is an interval at a particular point to
signpost to the user that they can hover over this point to get an
interval summary.
When hovering over a ride if there is an interval that defines
the entire ride (typical if coming in from WKO+) then don't
hover highlight it, since it is distracting and adds no value.
.. As you mouse over the ride plot it will now highlight
the shortest interval that that point is within.
.. If an interval has been selected in the sidebar it will
refrain from hover highlighting as it is distracting
.. Also fixed up the way the highlight curve works so it
has its own axis and works regardless of the data series
selected.
.. reset isolation when resetting curves etc
.. added a visual cue by dulling the axis scales to grey
when isolation is active -- to let the user see what
happened when they moused over an axis.
.. we SEGV when they are removed and we use the new
'isolate' curve mechanism to hide/show curves
.. also now keep a track of the reference lines in the
CurveColors class
.. we now isolate a curve temporarily with a click on the axis
so you can mouse over / look at the curve on its own
.. it would be good to also 'dull' the other curves and their
axis labels so we have a little context .. will look at that
next .. it might not be so 'clean' though.
.. the optimisation was a little eager and took out
the integration step !
.. access to PCP is now hidden behind a function so
it is only computed when neccessary.
.. the calculation is still significantly faster than
the old one but not as instant as the non-integrating
version (but then it wasn't working either!).
.. on ride plot, when W'bal is plotted we put a mesage to say
that CP is wrong, and autosolve for W'bal to zero.
.. this patch also optimises WPrime to make it a member of the
ridefile class and this always available (even for intervals).
.. fixed a SEGV when computing metrics for intervals by shifting
the timestamps to always start from zero.
.. we should actually paint a zoned background if
power shade zones is selected, when in compare mode.
.. but /only/ for charts that have power on them!