Revision: 5081
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5081&view=rev
Author: jdh2358
Date: 2008-04-27 18:22:19 -0700 (Sun, 27 Apr 2008)
Log Message:
-----------
fixed a ps path collection bug where cliprect and clipapth are none
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/backends/backend_ps.py
Modified: trunk/matplotlib/lib/matplotlib/backends/backend_ps.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_ps.py 2008-04-28
00:50:17 UTC (rev 5080)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_ps.py 2008-04-28
01:22:19 UTC (rev 5081)
@@ -777,6 +777,15 @@
id = self._get_clip_path(clippath, clippath_trans)
write('gsave\n%s\n' % id)
+ needwrap = not (clippath or cliprect)
+ if needwrap:
+ # we need to make sure that there is at least 1
+ # save/grestore around each ps write so we'll force it if
+ # we're not getting one from the cliprecot or clippath.
+ # hackish, yes
+ write('gsave\n')
+
+
# Jochen, is the strip necessary? - this could be a honking big string
write(ps.strip())
write("\n")
@@ -800,6 +809,8 @@
write("grestore\n")
if cliprect:
write("grestore\n")
+ if needwrap:
+ write('grestore\n')
class GraphicsContextPS(GraphicsContextBase):
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