diff --git a/OMEdit/OMEditLIB/Plotting/PlotWindowContainer.cpp b/OMEdit/OMEditLIB/Plotting/PlotWindowContainer.cpp index 8148ac3a142..fac487bfa9d 100644 --- a/OMEdit/OMEditLIB/Plotting/PlotWindowContainer.cpp +++ b/OMEdit/OMEditLIB/Plotting/PlotWindowContainer.cpp @@ -347,7 +347,7 @@ void PlotWindowContainer::addArrayPlotWindow(bool maximized) } } pPlotWindow->setTimeUnit(unitComboBox->currentText()); - pPlotWindow->setXLabel(QString("index")); + pPlotWindow->setXLabel(QString("array element index")); pPlotWindow->installEventFilter(this); QMdiSubWindow *pSubWindow = addSubWindow(pPlotWindow); PlottingPage *pPlottingPage = OptionsDialog::instance()->getPlottingPage(); diff --git a/OMPlot/OMPlot/OMPlotGUI/Plot.cpp b/OMPlot/OMPlot/OMPlotGUI/Plot.cpp index 7473e08231a..84c05a0afe5 100644 --- a/OMPlot/OMPlot/OMPlotGUI/Plot.cpp +++ b/OMPlot/OMPlot/OMPlotGUI/Plot.cpp @@ -315,13 +315,14 @@ void Plot::replot() QString timeUnit = mpParentPlotWindow->getTimeUnit(); if (mpParentPlotWindow->getPlotType() == PlotWindow::PLOT || mpParentPlotWindow->getPlotType() == PlotWindow::PLOTALL - || mpParentPlotWindow->getPlotType() == PlotWindow::PLOTINTERACTIVE - || mpParentPlotWindow->getPlotType() == PlotWindow::PLOTARRAY) { + || mpParentPlotWindow->getPlotType() == PlotWindow::PLOTINTERACTIVE) { if (mpXScaleDraw->getUnitPrefix().isEmpty()) { setAxisTitle(QwtPlot::xBottom, QString("%1 (%2)").arg(mpParentPlotWindow->getXLabel(), timeUnit)); } else { setAxisTitle(QwtPlot::xBottom, QString("%1 (%2%3)").arg(mpParentPlotWindow->getXLabel(), mpXScaleDraw->getUnitPrefix(), timeUnit)); } + } else if (mpParentPlotWindow->getPlotType() == PlotWindow::PLOTARRAY) { + setAxisTitle(QwtPlot::xBottom, mpParentPlotWindow->getXLabel()); } else { setAxisTitle(QwtPlot::xBottom, ""); }