diff --git a/Base/Axis/Scale.cpp b/Base/Axis/Scale.cpp index ce5eeab7420f0538d3e1832295bdc69bb908139b..fd39ade02076d2b43f9eaccb8e373ea6e7c49330 100644 --- a/Base/Axis/Scale.cpp +++ b/Base/Axis/Scale.cpp @@ -64,6 +64,11 @@ std::string Scale::axisLabel() const return m_coord->label(); } +std::string Scale::coordName() const +{ + return Coordinate(axisLabel()).name(); +} + std::string Scale::unit() const { return Coordinate(axisLabel()).unit(); diff --git a/Base/Axis/Scale.h b/Base/Axis/Scale.h index 41e0646f768d328fe4796eeb508789c18e2872cb..e434429e43140461b0fa6ffb697f5a4b30d62a18 100644 --- a/Base/Axis/Scale.h +++ b/Base/Axis/Scale.h @@ -80,6 +80,7 @@ public: friend std::ostream& operator<<(std::ostream& ostr, const Scale& ax); + std::string coordName() const; std::string unit() const; Scale plottableScale() const;