mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7752 Statistics Plot: Add titles for x and y axis
This commit is contained in:
@@ -314,3 +314,22 @@ QString RimGridStatisticsPlot::timeStepString() const
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimGridStatisticsPlot::createXAxisTitle() const
|
||||
{
|
||||
if ( m_case() == nullptr ) return "";
|
||||
|
||||
QStringList nameTags;
|
||||
nameTags += m_property()->resultVariable();
|
||||
|
||||
QString timeStepStr = timeStepString();
|
||||
if ( !timeStepStr.isEmpty() )
|
||||
{
|
||||
nameTags += timeStepStr;
|
||||
}
|
||||
|
||||
return nameTags.join( ", " );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user