#8822 Summary Axis: Add tick mark count to y-axis

This commit is contained in:
Magne Sjaastad
2022-04-22 09:58:51 +02:00
parent b6f7dd931e
commit 853b4a26d5
20 changed files with 157 additions and 38 deletions

View File

@@ -26,6 +26,7 @@
#include "WellLogCommands/RicWellLogPlotTrackFeatureImpl.h"
#include "RiaGuiApplication.h"
#include "RiaPlotDefines.h"
#include "RimContextCommandBuilder.h"
#include "RimMultiPlot.h"
@@ -359,8 +360,7 @@ void RiuMultiPlotPage::updateSubTitles()
//--------------------------------------------------------------------------------------------------
void RiuMultiPlotPage::renderTo( QPaintDevice* paintDevice )
{
int resolution = paintDevice->logicalDpiX();
double scaling = resolution / static_cast<double>( RiaGuiApplication::applicationResolution() );
auto scaling = RiaDefines::scalingFactor( paintDevice );
QPainter painter( paintDevice );
renderTo( &painter, scaling );