mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#11649 Hide X axis in Result Plot before data has been set.
This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
|
|
||||||
#include "cvfColor3.h"
|
#include "cvfColor3.h"
|
||||||
|
|
||||||
|
#include "qwt_axis_id.h"
|
||||||
#include "qwt_date_scale_draw.h"
|
#include "qwt_date_scale_draw.h"
|
||||||
#include "qwt_date_scale_engine.h"
|
#include "qwt_date_scale_engine.h"
|
||||||
#include "qwt_legend.h"
|
#include "qwt_legend.h"
|
||||||
@@ -54,6 +55,7 @@ RiuResultQwtPlot::RiuResultQwtPlot( QWidget* parent )
|
|||||||
{
|
{
|
||||||
setAutoFillBackground( true );
|
setAutoFillBackground( true );
|
||||||
setDefaults();
|
setDefaults();
|
||||||
|
setAxisVisible( QwtAxis::XBottom, false );
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@@ -91,6 +93,8 @@ void RiuResultQwtPlot::addCurve( const RimCase* rimCase,
|
|||||||
setAxisScale( QwtAxis::XTop, QwtDate::toDouble( dateTimes.front() ), QwtDate::toDouble( dateTimes.back() ) );
|
setAxisScale( QwtAxis::XTop, QwtDate::toDouble( dateTimes.front() ), QwtDate::toDouble( dateTimes.back() ) );
|
||||||
applyFontSizes( false );
|
applyFontSizes( false );
|
||||||
|
|
||||||
|
setAxisVisible( QwtAxis::XBottom, true );
|
||||||
|
|
||||||
replot();
|
replot();
|
||||||
|
|
||||||
int caseId = rimCase->caseId();
|
int caseId = rimCase->caseId();
|
||||||
|
|||||||
Reference in New Issue
Block a user