@@ -1656,6 +1656,7 @@ def add_artist(self, a):
16561656 self ._set_artist_props (a )
16571657 a .set_clip_path (self .patch )
16581658 a ._remove_method = lambda h : self .artists .remove (h )
1659+ self .stale = True
16591660 return a
16601661
16611662 def add_collection (self , collection , autolim = True ):
@@ -1678,6 +1679,7 @@ def add_collection(self, collection, autolim=True):
16781679 self .update_datalim (collection .get_datalim (self .transData ))
16791680
16801681 collection ._remove_method = lambda h : self .collections .remove (h )
1682+ self .stale = True
16811683 return collection
16821684
16831685 def add_image (self , image ):
@@ -1689,6 +1691,7 @@ def add_image(self, image):
16891691 self ._set_artist_props (image )
16901692 self .images .append (image )
16911693 image ._remove_method = lambda h : self .images .remove (h )
1694+ self .stale = True
16921695 return image
16931696
16941697 def add_line (self , line ):
@@ -1707,8 +1710,19 @@ def add_line(self, line):
17071710 line .set_label ('_line%d' % len (self .lines ))
17081711 self .lines .append (line )
17091712 line ._remove_method = lambda h : self .lines .remove (h )
1713+ self .stale = True
17101714 return line
17111715
1716+ def _add_text (self , txt ):
1717+ """
1718+
1719+ """
1720+ self ._set_artist_props (txt )
1721+ self .texts .append (txt )
1722+ txt ._remove_method = lambda h : self .texts .remove (h )
1723+ self .stale = True
1724+ return txt
1725+
17121726 def _update_line_limits (self , line ):
17131727 """
17141728 Figures out the data limit of the given line, updating self.dataLim.
0 commit comments