Code Cleanup: Charts

.. comments explain decisions, no action required.
This commit is contained in:
Mark Liversedge
2013-02-11 14:15:43 +00:00
parent b992739d7b
commit b8f23a14a4
3 changed files with 7 additions and 7 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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