mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 22:27:55 -05:00
#11649 Hide X axis in Result Plot before data has been set.
This commit is contained in:
1 parent
cf7a38375d
commit
cbb7e101e2
1 file changed
+4
@@ -35,6 +35,7 @@
|
||||
|
||||
#include "cvfColor3.h"
|
||||
|
||||
#include "qwt_axis_id.h"
|
||||
#include "qwt_date_scale_draw.h"
|
||||
#include "qwt_date_scale_engine.h"
|
||||
#include "qwt_legend.h"
|
||||
@@ -54,6 +55,7 @@ RiuResultQwtPlot::RiuResultQwtPlot( QWidget* parent )
|
||||
{
|
||||
setAutoFillBackground( true );
|
||||
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() ) );
|
||||
applyFontSizes( false );
|
||||
|
||||
setAxisVisible( QwtAxis::XBottom, true );
|
||||
|
||||
replot();
|
||||
|
||||
int caseId = rimCase->caseId();
|
||||
|
||||
Reference in new issue
Block a user