mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Code Cleanup: Charts
.. comments explain decisions, no action required.
This commit is contained in:
@@ -152,8 +152,8 @@ void PerfPlot::plot() {
|
||||
DAYcurve->setPen(daypen);
|
||||
DAYcurve->setStyle(QwtPlotCurve::Sticks);
|
||||
|
||||
// XXX Note: the days are offset by 1 without the -1 in the
|
||||
// line below --------------+
|
||||
// Note: the days are offset by 1 without the -1 in the
|
||||
// line below ------------------+
|
||||
// |
|
||||
// V
|
||||
DAYcurve->setData(_sc->getDays()+xmin -1 ,_sc->getDAYvalues()+xmin,num);
|
||||
|
||||
@@ -528,14 +528,14 @@ PowerHist::recalc(bool force)
|
||||
if (source == Cache && zoned && (series == RideFile::watts || series == RideFile::wattsKg) && mainWindow->zones()) {
|
||||
setAxisScaleDraw(QwtPlot::xBottom, new ZoneScaleDraw(mainWindow->zones(), 0));
|
||||
if (mainWindow->zones()->getRangeSize())
|
||||
setAxisScale(QwtPlot::xBottom, -0.99, mainWindow->zones()->numZones(0), 1); // XXX use zones from first defined range
|
||||
setAxisScale(QwtPlot::xBottom, -0.99, mainWindow->zones()->numZones(0), 1); // use zones from first defined range
|
||||
}
|
||||
|
||||
// hr zoned for a time range
|
||||
if (source == Cache && zoned && series == RideFile::hr && mainWindow->hrZones()) {
|
||||
setAxisScaleDraw(QwtPlot::xBottom, new HrZoneScaleDraw(mainWindow->hrZones(), 0));
|
||||
if (mainWindow->hrZones()->getRangeSize())
|
||||
setAxisScale(QwtPlot::xBottom, -0.99, mainWindow->hrZones()->numZones(0), 1); // XXX use zones from first defined range
|
||||
setAxisScale(QwtPlot::xBottom, -0.99, mainWindow->hrZones()->numZones(0), 1); // use zones from first defined range
|
||||
}
|
||||
|
||||
setAxisMaxMinor(QwtPlot::xBottom, 0);
|
||||
|
||||
@@ -40,9 +40,9 @@ ScatterWindow::addStandardChannels(QComboBox *box)
|
||||
box->addItem(tr("CPV"), MODEL_CPV);
|
||||
box->addItem(tr("Time"), MODEL_TIME);
|
||||
box->addItem(tr("Distance"), MODEL_DISTANCE);
|
||||
//box->addItem(tr("Interval"), MODEL_INTERVAL); //XXX supported differently for now
|
||||
//box->addItem(tr("Latitude"), MODEL_LAT); //XXX weird values make the plot ugly
|
||||
//box->addItem(tr("Longitude"), MODEL_LONG); //XXX weird values make the plot ugly
|
||||
//box->addItem(tr("Interval"), MODEL_INTERVAL); //supported differently for now
|
||||
//box->addItem(tr("Latitude"), MODEL_LAT); //weird values make the plot ugly
|
||||
//box->addItem(tr("Longitude"), MODEL_LONG); //weird values make the plot ugly
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user