Revision: 6074
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6074&view=rev
Author:   jouni
Date:     2008-09-07 11:28:45 +0000 (Sun, 07 Sep 2008)

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

........
  r6073 | jouni | 2008-09-07 14:19:13 +0300 (Sun, 07 Sep 2008) | 3 lines
  
  Changed full arrows slightly to avoid an xpdf rendering
  problem reported by Friedrich Hagedorn.
........

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

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


Property changes on: trunk/matplotlib
___________________________________________________________________
Modified: svnmerge-integrated
   - /branches/v0_91_maint:1-6068
   + /branches/v0_91_maint:1-6073

Modified: trunk/matplotlib/CHANGELOG
===================================================================
--- trunk/matplotlib/CHANGELOG  2008-09-07 11:19:13 UTC (rev 6073)
+++ trunk/matplotlib/CHANGELOG  2008-09-07 11:28:45 UTC (rev 6074)
@@ -1,3 +1,6 @@
+2008-09-07 Changed full arrows slightly to avoid an xpdf rendering
+           problem reported by Friedrich Hagedorn. - JKS
+
 2008-09-07 Fix conversion of quadratic to cubic Bezier curves in PDF 
            and PS backends. Patch by Jae-Joon Lee. - JKS
 

Modified: trunk/matplotlib/lib/matplotlib/patches.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/patches.py  2008-09-07 11:19:13 UTC (rev 
6073)
+++ trunk/matplotlib/lib/matplotlib/patches.py  2008-09-07 11:28:45 UTC (rev 
6074)
@@ -772,7 +772,11 @@
                 if shape == 'right':
                     coords = right_half_arrow
                 elif shape == 'full':
-                    
coords=np.concatenate([left_half_arrow,right_half_arrow[::-1]])
+                    # The half-arrows contain the midpoint of the stem,
+                    # which we can omit from the full arrow. Including it
+                    # twice caused a problem with xpdf.
+                    coords=np.concatenate([left_half_arrow[:-1],
+                                            right_half_arrow[-2::-1]])
                 else:
                     raise ValueError, "Got unknown shape: %s" % shape
             cx = float(dx)/distance


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 Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to