Stacked Plot Improvements

Make first plot the same size as the others in stacked view
Stop RPM scale clutter
This commit is contained in:
Andy Bryson
2012-12-20 11:22:54 +00:00
parent e222bd90eb
commit ff27c24f32
2 changed files with 19 additions and 13 deletions

View File

@@ -1474,17 +1474,7 @@ AllPlotWindow::setupStackPlots()
_allPlot->setDataFromPlot(fullPlot, startIndex, stopIndex);
_allPlot->setAxisScale(QwtPlot::xBottom, _stackWidth*i, _stackWidth*(i+1), 15/stackWidth);
if (i==0){
// First plot view title and legend
//_allPlot->setTitle(allPlot->title());
//_allPlot->plotLayout()->setLegendPosition(QwtPlot::TopLegend);
_allPlot->setFixedHeight(120+stackWidth*2+50);
}
else {
_allPlot->setTitle("");
//_allPlot->insertLegend(NULL);
_allPlot->setFixedHeight(120+stackWidth*2);
}
_allPlot->setFixedHeight(120+stackWidth*2);
// No x axis titles
_allPlot->setAxisTitle(QwtPlot::xBottom,NULL);