Improve auto name for curves and plots

- use vector name as plot title if a vector and the associated history vector is present
- use short vector name as fallback for curve name
- use Plot N as fallback name for sub plot
This commit is contained in:
Magne Sjaastad
2022-06-01 14:00:35 +02:00
parent 36dab01cf5
commit 5e53f5687d
3 changed files with 18 additions and 4 deletions

View File

@@ -93,6 +93,11 @@ std::string RiaSummaryAddressAnalyzer::quantityNameForTitle() const
return *quantities().begin();
}
if ( quantities().size() == 2 && quantityNamesWithHistory().size() == 1 )
{
return *quantityNamesWithHistory().begin();
}
return {};
}