Skip to content

Commit

Permalink
#11649 Hide X axis in Result Plot before data has been set.
Browse files Browse the repository at this point in the history
  • Loading branch information
kriben committed Aug 30, 2024
1 parent 7b58c57 commit 15f3373
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ApplicationLibCode/UserInterface/RiuResultQwtPlot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -54,6 +55,7 @@ RiuResultQwtPlot::RiuResultQwtPlot( QWidget* parent )
{
setAutoFillBackground( true );
setDefaults();
setAxisVisible( QwtAxis::XBottom, false );
}

//--------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 15f3373

Please sign in to comment.