From dca2d098a9550549b8928d39ed921d9ea8ad1559 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Tue, 25 Feb 2020 20:03:09 +0100 Subject: [PATCH] gui: hide gain legend --- slsDetectorGui/src/qDrawPlot.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/slsDetectorGui/src/qDrawPlot.cpp b/slsDetectorGui/src/qDrawPlot.cpp index f6b4c7d49..fdbad1b09 100755 --- a/slsDetectorGui/src/qDrawPlot.cpp +++ b/slsDetectorGui/src/qDrawPlot.cpp @@ -192,6 +192,7 @@ void qDrawPlot::SetupPlots() { gainplot1d->axisScaleDraw(QwtPlot::xBottom)->enableComponent(QwtScaleDraw::Ticks, false); gainplot1d->axisScaleDraw(QwtPlot::yLeft)->enableComponent(QwtScaleDraw::Labels, false); gainplot1d->axisScaleDraw(QwtPlot::yLeft)->enableComponent(QwtScaleDraw::Ticks, false); + gainhist1d->setItemAttribute(QwtPlotItem::Legend, false); gainhist1d->Attach(gainplot1d); gainplot1d->hide();