Revision: 7083
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7083&view=rev
Author:   leejjoon
Date:     2009-05-04 20:14:40 +0000 (Mon, 04 May 2009)

Log Message:
-----------
Merged revisions 7082 via svnmerge from 
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_98_5_maint

........
  r7082 | leejjoon | 2009-05-04 16:05:57 -0400 (Mon, 04 May 2009) | 2 lines
  
  Fix bug that Text.Annotation is still drawn while set to not visible
........

Modified Paths:
--------------
    trunk/matplotlib/CHANGELOG
    trunk/matplotlib/lib/matplotlib/text.py

Property Changed:
----------------
    trunk/matplotlib/


Property changes on: trunk/matplotlib
___________________________________________________________________
Modified: svnmerge-integrated
   - /branches/v0_91_maint:1-6428 /branches/v0_98_5_maint:1-7080
   + /branches/v0_91_maint:1-6428 /branches/v0_98_5_maint:1-7082

Modified: trunk/matplotlib/CHANGELOG
===================================================================
--- trunk/matplotlib/CHANGELOG  2009-05-04 20:05:57 UTC (rev 7082)
+++ trunk/matplotlib/CHANGELOG  2009-05-04 20:14:40 UTC (rev 7083)
@@ -1,4 +1,7 @@
 ======================================================================
+2009-05-04 Fix bug that Text.Annotation is still drawn while set to 
+           not visible.-JJL
+
 2009-05-04 Added TJ's fill_betweenx patch - JDH
 
 2009-05-02 Added options to plotfile based on question from

Modified: trunk/matplotlib/lib/matplotlib/text.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/text.py     2009-05-04 20:05:57 UTC (rev 
7082)
+++ trunk/matplotlib/lib/matplotlib/text.py     2009-05-04 20:14:40 UTC (rev 
7083)
@@ -1612,6 +1612,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

Reply via email to