From f175056e2b04eccfb6b32ff0ee58d60e41dbf664 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Fri, 13 Jun 2014 12:44:12 +0100 Subject: [PATCH] Isolate Curve Labels but not Vertical Markers .. as they represent intervals and events and are therefore related to the x-axis (time/distance) rather than any y-axis we may be showing / hiding. --- src/AllPlot.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/AllPlot.h b/src/AllPlot.h index 86e278d09..7ebe1c593 100644 --- a/src/AllPlot.h +++ b/src/AllPlot.h @@ -140,6 +140,9 @@ class CurveColors : public QObject // Labels foreach(QwtPlotItem *item, plot->itemList(QwtPlotItem::Rtti_PlotMarker)) { + // ignore event / interval markers + if (static_cast(item)->lineStyle() == QwtPlotMarker::VLine) continue; + QwtScaleWidget *x = plot->axisWidget(static_cast(item)->yAxis()); labels.insert(static_cast(item), x); }