summaryrefslogtreecommitdiffstats
path: root/stats/statsaxis.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'stats/statsaxis.cpp')
-rw-r--r--stats/statsaxis.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/stats/statsaxis.cpp b/stats/statsaxis.cpp
index 3bdb8e427..ebd41fb94 100644
--- a/stats/statsaxis.cpp
+++ b/stats/statsaxis.cpp
@@ -52,6 +52,12 @@ std::pair<double, double> StatsAxis::minMax() const
return { min, max };
}
+std::pair<double, double> StatsAxis::minMaxScreen() const
+{
+ return horizontal ? std::make_pair(zeroOnScreen, zeroOnScreen + size)
+ : std::make_pair(zeroOnScreen, zeroOnScreen - size);
+}
+
void StatsAxis::setRange(double minIn, double maxIn)
{
min = minIn;