Fix height legend labels
This commit is contained in:
parent
7d70effbd0
commit
0d831b62cf
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue