mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#9093 MultiPlot: improve axis alignment by resizing scales
This commit is contained in:
@@ -73,6 +73,8 @@ void RiuSummaryMultiPlotPage::reinsertPlotWidgets()
|
||||
QList<QPointer<RiuQwtPlotLegend>> legends = this->legendsForVisiblePlots();
|
||||
QList<QPointer<RiuPlotWidget>> plotWidgets = this->visiblePlotWidgets();
|
||||
|
||||
m_visibleIndexToPositionMapping.clear();
|
||||
|
||||
int visibleIndex = 0;
|
||||
int phIndex = 0;
|
||||
|
||||
@@ -90,6 +92,8 @@ void RiuSummaryMultiPlotPage::reinsertPlotWidgets()
|
||||
continue;
|
||||
}
|
||||
|
||||
m_visibleIndexToPositionMapping[visibleIndex] = std::make_pair( row, col );
|
||||
|
||||
auto plotWidget = plotWidgets[visibleIndex];
|
||||
int expectedColSpan = plotWidget->colSpan();
|
||||
int colSpan = std::min( expectedColSpan, cols - col );
|
||||
|
||||
Reference in New Issue
Block a user