Skip to content
Snippets Groups Projects
Commit 70f8dbb1 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov Committed by Mikhail Svechnikov
Browse files

add Scale::coordName()

parent 909edf40
No related branches found
No related tags found
1 merge request!2178Do a coordinates conversion for loaded specular data (#811)
...@@ -64,6 +64,11 @@ std::string Scale::axisLabel() const ...@@ -64,6 +64,11 @@ std::string Scale::axisLabel() const
return m_coord->label(); return m_coord->label();
} }
std::string Scale::coordName() const
{
return Coordinate(axisLabel()).name();
}
std::string Scale::unit() const std::string Scale::unit() const
{ {
return Coordinate(axisLabel()).unit(); return Coordinate(axisLabel()).unit();
......
...@@ -80,6 +80,7 @@ public: ...@@ -80,6 +80,7 @@ public:
friend std::ostream& operator<<(std::ostream& ostr, const Scale& ax); friend std::ostream& operator<<(std::ostream& ostr, const Scale& ax);
std::string coordName() const;
std::string unit() const; std::string unit() const;
Scale plottableScale() const; Scale plottableScale() const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment