Revision: 8191
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8191&view=rev
Author:   leejjoon
Date:     2010-03-13 22:27:57 +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:
--------------
    branches/v0_99_maint/CHANGELOG
    branches/v0_99_maint/lib/matplotlib/legend.py

Modified: branches/v0_99_maint/CHANGELOG
===================================================================
--- branches/v0_99_maint/CHANGELOG      2010-03-13 19:27:00 UTC (rev 8190)
+++ branches/v0_99_maint/CHANGELOG      2010-03-13 22:27:57 UTC (rev 8191)
@@ -1,3 +1,6 @@
+2010-03-13 fix the bug that handles for scatter are incorrectly set when 
+           dpi!=72. Thanks to Ray Speth for the bug report. -JJL
+
 ===============================================
 2009-09-21 Tagged for release 0.99.1
 

Modified: branches/v0_99_maint/lib/matplotlib/legend.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/legend.py       2010-03-13 19:27:00 UTC 
(rev 8190)
+++ branches/v0_99_maint/lib/matplotlib/legend.py       2010-03-13 22:27:57 UTC 
(rev 8191)
@@ -580,6 +580,13 @@
 
             handle = handle_list[-1]
             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