Skip to content
Snippets Groups Projects

round min_y, max_y to 2 decimal places

Merged Lan Dam requested to merge i97_round_min_max into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -287,8 +287,8 @@ class PlottingAxes:
:param min_y: float - minimum of y values
:param max_y: float - maximum of y values
"""
min_y = round(min_y, 7)
max_y = round(max_y, 7)
min_y = round(min_y, 2)
max_y = round(max_y, 2)
if max_y > min_y:
# There are different values for y => show yticks for min, max
# separately
Loading