From 520f1fc60d79382fc177a4de37cee632b233b780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l=20Hagen?= Date: Fri, 4 Sep 2015 17:11:16 +0200 Subject: [PATCH] (#410) Using a smaller font size for numbers on axes --- ApplicationCode/UserInterface/RiuWellLogTracePlot.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ApplicationCode/UserInterface/RiuWellLogTracePlot.cpp b/ApplicationCode/UserInterface/RiuWellLogTracePlot.cpp index 3497f62817..ec10f5704c 100644 --- a/ApplicationCode/UserInterface/RiuWellLogTracePlot.cpp +++ b/ApplicationCode/UserInterface/RiuWellLogTracePlot.cpp @@ -28,6 +28,7 @@ #include "qwt_plot_layout.h" #include +#include #define RIU_SCROLLWHEEL_ZOOMFACTOR 1.1 #define RIU_SCROLLWHEEL_PANFACTOR 0.1 @@ -100,6 +101,14 @@ void RiuWellLogTracePlot::setDefaults() setAxisScale(QwtPlot::xTop, -10, 100); setAxisAutoScale(QwtPlot::xTop, true); + + QFont xAxisFont = axisFont(QwtPlot::xTop); + xAxisFont.setPixelSize(9); + setAxisFont(QwtPlot::xTop, xAxisFont); + + QFont yAxisFont = axisFont(QwtPlot::yLeft); + yAxisFont.setPixelSize(9); + setAxisFont(QwtPlot::yLeft, yAxisFont); } //--------------------------------------------------------------------------------------------------