diff --git a/lib/xmet/hodograph.py b/lib/xmet/hodograph.py index 8569fa4..a570f42 100644 --- a/lib/xmet/hodograph.py +++ b/lib/xmet/hodograph.py @@ -108,12 +108,13 @@ class Hodograph(): text = "%dkt" % speed extents = cr.text_extents(text) - sx, sy = self.sample_to_screen(speed, 180) + for angle in (0, 180): + sx, sy = self.sample_to_screen(speed, angle) - cr.move_to(x + sx + extents.width * 0.25, - y + sy - extents.height * 1.5) - cr.show_text(text) - cr.stroke() + cr.move_to(x + sx + extents.width * 0.25, + y + sy - extents.height * 1.5) + cr.show_text(text) + cr.stroke() cr.restore()