mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4339 Show actual parameter names instead of X and Y in Grid Cross Plot Show Data
This commit is contained in:
@@ -1080,10 +1080,13 @@ void RimGridCrossPlotDataSet::exportFormattedData(RifEclipseDataTableFormatter&
|
||||
{
|
||||
if (m_groupedResults.empty()) return;
|
||||
|
||||
QString xTitle = QString("%1").arg(m_xAxisProperty->resultVariableUiShortName());
|
||||
QString yTitle = QString("%1").arg(m_yAxisProperty->resultVariableUiShortName());
|
||||
|
||||
if (m_grouping != NO_GROUPING)
|
||||
{
|
||||
std::vector<RifEclipseOutputTableColumn> header = {RifEclipseOutputTableColumn("X"),
|
||||
RifEclipseOutputTableColumn("Y"),
|
||||
std::vector<RifEclipseOutputTableColumn> header = {RifEclipseOutputTableColumn(xTitle),
|
||||
RifEclipseOutputTableColumn(yTitle),
|
||||
RifEclipseOutputTableColumn("Group Index"),
|
||||
RifEclipseOutputTableColumn("Group Description")};
|
||||
|
||||
@@ -1091,7 +1094,7 @@ void RimGridCrossPlotDataSet::exportFormattedData(RifEclipseDataTableFormatter&
|
||||
}
|
||||
else
|
||||
{
|
||||
std::vector<RifEclipseOutputTableColumn> header = {RifEclipseOutputTableColumn("X"), RifEclipseOutputTableColumn("Y")};
|
||||
std::vector<RifEclipseOutputTableColumn> header = {RifEclipseOutputTableColumn(xTitle), RifEclipseOutputTableColumn(yTitle)};
|
||||
formatter.header(header);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user