diff --git a/src/plotmanager.cpp b/src/plotmanager.cpp --- a/src/plotmanager.cpp +++ b/src/plotmanager.cpp @@ -46,6 +46,7 @@ PlotManager::PlotManager(QWidget* plotAr isDemoShown = false; _infoModel = infoModel; _numOfSamples = 1; + _plotWidth = 1; showSymbols = Plot::ShowSymbolsAuto; emptyPlot = NULL; @@ -316,6 +317,7 @@ Plot* PlotManager::addPlotWidget() plot->setNumOfSamples(_numOfSamples); plot->setSymbols(showSymbols); + plot->setPlotWidth(_plotWidth); if (_xAxisAsIndex) { plot->setXAxis(0, _numOfSamples); @@ -542,6 +544,15 @@ void PlotManager::setNumOfSamples(unsign } } +void PlotManager::setPlotWidth(double width) +{ + _plotWidth = width; + for (auto plot : plotWidgets) + { + plot->setPlotWidth(width); + } +} + PlotViewSettings PlotManager::viewSettings() const { return PlotViewSettings(