Revision: 7082
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7082&view=rev
Author: leejjoon
Date: 2009-05-04 20:05:57 +0000 (Mon, 04 May 2009)
Log Message:
-----------
Fix bug that Text.Annotation is still drawn while set to not visible
Modified Paths:
--------------
branches/v0_98_5_maint/CHANGELOG
branches/v0_98_5_maint/lib/matplotlib/text.py
Modified: branches/v0_98_5_maint/CHANGELOG
===================================================================
--- branches/v0_98_5_maint/CHANGELOG 2009-05-04 19:07:43 UTC (rev 7081)
+++ branches/v0_98_5_maint/CHANGELOG 2009-05-04 20:05:57 UTC (rev 7082)
@@ -1,4 +1,7 @@
======================================================================
+2009-05-04 Fix bug that Text.Annotation is still drawn while set to
+ not visible.-JJL
+
2008-04-12 Release 0.98.5.3 at r7038
2009-04-06 The pdf backend now escapes newlines and linefeeds in strings.
Modified: branches/v0_98_5_maint/lib/matplotlib/text.py
===================================================================
--- branches/v0_98_5_maint/lib/matplotlib/text.py 2009-05-04 19:07:43 UTC
(rev 7081)
+++ branches/v0_98_5_maint/lib/matplotlib/text.py 2009-05-04 20:05:57 UTC
(rev 7082)
@@ -1602,6 +1602,11 @@
"""
Draw the :class:`Annotation` object to the given *renderer*.
"""
+
+ if renderer is not None:
+ self._renderer = renderer
+ if not self.get_visible(): return
+
self.update_positions(renderer)
self.update_bbox_position_size(renderer)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins