Fix height legend labels

This commit is contained in:
XANTRONIX 2025-02-26 16:11:00 -05:00
parent 7d70effbd0
commit 0d831b62cf

View file

@ -204,7 +204,12 @@ class Hodograph():
cr.stroke()
cr.move_to(offset + x, y + 3.5*width)
cr.show_text("%dkm" % (height / 1000))
if height < 1000:
cr.show_text("%dm" % height)
else:
cr.show_text("%dkm" % (height / 1000))
cr.stroke()
offset += interval