Source
1777
1777
canvas->setAxisFont(Y_LEFT, yFont);
1778
1778
yFont = canvas->axisFont(Y_RIGHT);
1779
1779
yFont->setPointSize(pointsize);
1780
1780
canvas->setAxisFont(Y_RIGHT, yFont);
1781
1781
}
1782
1782
1783
1783
// x and y axis ranges
1784
1784
canvas->setAxesAutoRescale(true);
1785
1785
bool makeSquare(false), waveplot(false); // true if uv/uvwave plot
1786
1786
if (set) {
1787
-
double xmin, xmax, ymin, ymax, xymax;
1787
+
double xmin, xmax, ymin, ymax, xymax = 0;
1788
1788
1789
1789
bool displayUnflagged = (displayParams->unflaggedSymbol()->symbol() != PlotSymbol::NOSYMBOL);
1790
1790
bool displayFlagged = (displayParams->flaggedSymbol()->symbol() != PlotSymbol::NOSYMBOL);
1791
1791
if (displayUnflagged && !displayFlagged) { // get range of unflagged data only
1792
1792
itsCache_->indexer(0,iteration).unmaskedMinsMaxesRaw(xmin, xmax, ymin, ymax);
1793
1793
} else if (displayFlagged && !displayUnflagged) { // get range of flagged data only
1794
1794
itsCache_->indexer(0,iteration).maskedMinsMaxesRaw(xmin, xmax, ymin, ymax);
1795
1795
} else { // get range of all data
1796
1796
itsCache_->indexer(0,iteration).minsMaxes(xmin, xmax, ymin, ymax);
1797
1797
}