mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
W'bal on ErgPlot always starts at 0
.. so you can see quickly how 'deep' a workout will take you as you scroll through them.
This commit is contained in:
@@ -393,7 +393,7 @@ ErgFilePlot::setData(ErgFile *ergfile)
|
||||
calculator.setErg(ergfile);
|
||||
|
||||
setAxisTitle(QwtAxisId(QwtAxis::yRight, 3), tr("W' Balance (j)"));
|
||||
setAxisScale(QwtAxisId(QwtAxis::yRight, 3),calculator.minY-1000,calculator.maxY+1000);
|
||||
setAxisScale(QwtAxisId(QwtAxis::yRight, 3),qMin(double(calculator.minY-1000),double(0)),calculator.maxY+1000);
|
||||
setAxisLabelAlignment(QwtAxisId(QwtAxis::yRight, 3),Qt::AlignVCenter);
|
||||
|
||||
// and the values ... but avoid sharing!
|
||||
|
||||
Reference in New Issue
Block a user