From 48c4d815053751be81d810cd84173b9c69438c16 Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Mon, 20 Apr 2020 09:35:35 +0200 Subject: [PATCH] Add ABS tag to Correlation plot x-axis when using absolute values --- .../ProjectDataModel/CorrelationPlots/RimCorrelationPlot.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ApplicationCode/ProjectDataModel/CorrelationPlots/RimCorrelationPlot.cpp b/ApplicationCode/ProjectDataModel/CorrelationPlots/RimCorrelationPlot.cpp index 3238647ea8..68a99139ed 100644 --- a/ApplicationCode/ProjectDataModel/CorrelationPlots/RimCorrelationPlot.cpp +++ b/ApplicationCode/ProjectDataModel/CorrelationPlots/RimCorrelationPlot.cpp @@ -181,10 +181,12 @@ void RimCorrelationPlot::updateAxes() m_plotWidget->setAxisFontsAndAlignment( QwtPlot::xBottom, 11, 11, false, Qt::AlignCenter ); if ( m_showAbsoluteValues ) { + m_plotWidget->setAxisTitleText( QwtPlot::xBottom, "Pearson Correlation Coefficient ABS" ); m_plotWidget->setAxisRange( QwtPlot::xBottom, 0.0, 1.0 ); } else { + m_plotWidget->setAxisTitleText( QwtPlot::xBottom, "Pearson Correlation Coefficient" ); m_plotWidget->setAxisRange( QwtPlot::xBottom, -1.0, 1.0 ); } }