From 973831f297dc80194c1e04428b4b3aa7ec37b072 Mon Sep 17 00:00:00 2001 From: Cimarron Mittelsteadt Date: Sun, 22 Feb 2015 11:14:17 -0800 Subject: [PATCH] BUG: Fixed annotation draw method to properly draw the text portion of the annotation --- lib/matplotlib/text.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/text.py b/lib/matplotlib/text.py index 14fdd4533bc3..063b9bc9946a 100644 --- a/lib/matplotlib/text.py +++ b/lib/matplotlib/text.py @@ -7,6 +7,7 @@ import six from six.moves import zip +import copy import math import warnings @@ -2092,7 +2093,9 @@ def draw(self, renderer): self.arrow_patch.figure = self.figure self.arrow_patch.draw(renderer) - Text.draw(self, renderer) + astext = copy.copy(self) + astext.__class__ = Text + Text.draw(astext, renderer) def get_window_extent(self, renderer=None): '''