Fix font size for summary plot axes

This commit is contained in:
Gaute Lindkvist 2020-06-02 17:23:54 +02:00
parent 98124a177e
commit 2237be3898
2 changed files with 4 additions and 5 deletions

View File

@ -1050,9 +1050,8 @@ void RimSummaryPlot::updateTimeAxis()
} }
m_plotWidget->setAxisFontsAndAlignment( QwtPlot::xBottom, m_plotWidget->setAxisFontsAndAlignment( QwtPlot::xBottom,
caf::FontTools::pointSizeToPixelSize( m_timeAxisProperties->titleFontSize() ), m_timeAxisProperties->titleFontSize(),
caf::FontTools::pointSizeToPixelSize( m_timeAxisProperties->valuesFontSize(),
m_timeAxisProperties->valuesFontSize() ),
true, true,
alignment ); alignment );
m_plotWidget->setAxisTitleText( QwtPlot::xBottom, m_timeAxisProperties->title() ); m_plotWidget->setAxisTitleText( QwtPlot::xBottom, m_timeAxisProperties->title() );

View File

@ -127,8 +127,8 @@ void RimSummaryPlotAxisFormatter::applyAxisPropertiesToPlot( RiuQwtPlotWidget* q
} }
qwtPlot->setAxisTitleText( m_axisProperties->qwtPlotAxisType(), axisTitle ); qwtPlot->setAxisTitleText( m_axisProperties->qwtPlotAxisType(), axisTitle );
qwtPlot->setAxisFontsAndAlignment( m_axisProperties->qwtPlotAxisType(), qwtPlot->setAxisFontsAndAlignment( m_axisProperties->qwtPlotAxisType(),
caf::FontTools::pointSizeToPixelSize( m_axisProperties->titleFontSize() ), m_axisProperties->titleFontSize(),
caf::FontTools::pointSizeToPixelSize( m_axisProperties->valuesFontSize() ), m_axisProperties->valuesFontSize(),
true, true,
titleAlignment ); titleAlignment );
qwtPlot->setAxisTitleEnabled( m_axisProperties->qwtPlotAxisType(), true ); qwtPlot->setAxisTitleEnabled( m_axisProperties->qwtPlotAxisType(), true );