Revision: 5077
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5077&view=rev
Author:   jdh2358
Date:     2008-04-26 14:59:17 -0700 (Sat, 26 Apr 2008)

Log Message:
-----------
added a dpi callback to the quiver key

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/quiver.py

Modified: trunk/matplotlib/lib/matplotlib/quiver.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/quiver.py   2008-04-26 21:46:52 UTC (rev 
5076)
+++ trunk/matplotlib/lib/matplotlib/quiver.py   2008-04-26 21:59:17 UTC (rev 
5077)
@@ -169,6 +169,13 @@
         self.color = kw.pop('color', None)
         self.label = label
         self.labelsep = (kw.pop('labelsep', 0.1) * Q.ax.figure.dpi)
+
+        def on_dpi_change(fig):
+            self.labelsep = (kw.pop('labelsep', 0.1) * fig.dpi)
+
+        Q.ax.figure.callbacks.connect('dpi_changed', on_dpi_change)
+
+
         self.labelpos = kw.pop('labelpos', 'N')
         self.labelcolor = kw.pop('labelcolor', None)
         self.fontproperties = kw.pop('fontproperties', dict())


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to