diff --git a/lib/xmet/hodograph.py b/lib/xmet/hodograph.py index 171457c..cbf4176 100644 --- a/lib/xmet/hodograph.py +++ b/lib/xmet/hodograph.py @@ -66,29 +66,6 @@ class Hodograph(): cr.restore() - def draw_direction_legends(self, cr: cairo.Context, x, y): - cr.save() - - cr.select_font_face('Sans', - cairo.FONT_SLANT_NORMAL, - cairo.FONT_WEIGHT_BOLD) - - cr.set_font_size(16) - - for angle in range(0, 360, WIND_DIR_STEP): - text = "%d°" % angle - extents = cr.text_extents(text) - r = self.radius + ((extents.width + extents.height) / 2) - - sx = 0.1 * self.width + r * math.cos(radians(angle)) - sy = 0.9 * self.height + r * math.sin(radians(angle)) - - cr.move_to(x + sx - extents.width / 2, y + sy + extents.height / 2) - cr.show_text(text) - cr.stroke() - - cr.restore() - def draw_speed_legends(self, cr: cairo.Context, x, y): cr.save() @@ -219,7 +196,6 @@ class Hodograph(): self.draw_sounding(cr, x, y, sounding) self.draw_speed_legends(cr, x, y) - self.draw_direction_legends(cr, x, y) self.draw_height_legends(cr, x, y) cr.reset_clip()