mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-15 02:26:18 -06:00
Add support for summary cross plot curves in summary plots
This commit is contained in:
1 parent
b87fa0bc74
commit
146412c600
44 files changed
+970
-440
No files matched your search
@@ -84,6 +84,15 @@ RiuPlotAxis RiuPlotAxis::defaultBottom()
|
||||
return RiuPlotAxis( RiaDefines::PlotAxis::PLOT_AXIS_BOTTOM );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuPlotAxis RiuPlotAxis::defaultBottomForSummaryVectors()
|
||||
{
|
||||
// Time axis is using index 0, so we need to use index 1 for the bottom axis
|
||||
return RiuPlotAxis( RiaDefines::PlotAxis::PLOT_AXIS_BOTTOM, 1 );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -32,6 +32,7 @@ public:
|
||||
static RiuPlotAxis defaultRight();
|
||||
static RiuPlotAxis defaultTop();
|
||||
static RiuPlotAxis defaultBottom();
|
||||
static RiuPlotAxis defaultBottomForSummaryVectors();
|
||||
|
||||
RiaDefines::PlotAxis axis() const;
|
||||
|
||||
|
||||
@@ -349,7 +349,8 @@ void RiuQwtPlotWidget::setAxisRange( RiuPlotAxis axis, double min, double max )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuQwtPlotWidget::setAxisInverted( RiuPlotAxis axis, bool isInverted )
|
||||
{
|
||||
m_plot->axisScaleEngine( toQwtPlotAxis( axis ) )->setAttribute( QwtScaleEngine::Inverted, isInverted );
|
||||
auto scaleEngine = m_plot->axisScaleEngine( toQwtPlotAxis( axis ) );
|
||||
if ( scaleEngine ) scaleEngine->setAttribute( QwtScaleEngine::Inverted, isInverted );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user