|
From: <jd...@us...> - 2008-04-26 21:59:20
|
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.
|