Revision: 8192
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8192&view=rev
Author:   leejjoon
Date:     2010-03-13 22:31:11 +0000 (Sat, 13 Mar 2010)

Log Message:
-----------
fix the bug that handles for scatter are incorrectly set when dpi!=72. Thanks 
to Ray Speth for the bug report.

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

Modified: trunk/matplotlib/CHANGELOG
===================================================================
--- trunk/matplotlib/CHANGELOG  2010-03-13 22:27:57 UTC (rev 8191)
+++ trunk/matplotlib/CHANGELOG  2010-03-13 22:31:11 UTC (rev 8192)
@@ -1,3 +1,11 @@
+2010-03-13 Manually brought in commits from branch
+
+  ------------------------------------------------------------------------
+  r8191 | leejjoon | 2010-03-13 17:27:57 -0500 (Sat, 13 Mar 2010) | 1 line
+
+  fix the bug that handles for scatter are incorrectly set when dpi!=72. 
Thanks to Ray Speth for the bug report.
+
+
 2010-03-03 Manually brought in commits from branch via diff/patch (svnmerge is 
broken)
 
   ------------------------------------------------------------------------

Modified: trunk/matplotlib/lib/matplotlib/legend.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/legend.py   2010-03-13 22:27:57 UTC (rev 
8191)
+++ trunk/matplotlib/lib/matplotlib/legend.py   2010-03-13 22:31:11 UTC (rev 
8192)
@@ -623,6 +623,14 @@
                                         xdescent=0., ydescent=descent)
 
                 handlebox.add_artist(handle)
+
+                # special case for collection instances
+                if isinstance(handle, RegularPolyCollection) or \
+                       isinstance(handle, CircleCollection):
+                    handle._transOffset = handlebox.get_transform()
+                    handle.set_transform(None)
+
+
                 if hasattr(handle, "_legmarker"):
                     handlebox.add_artist(handle._legmarker)
                 handleboxes.append(handlebox)


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

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to