On Friday 19 October 2007 10:55:24 am John Hunter wrote: > On 10/19/07, Darren Dale <[EMAIL PROTECTED]> wrote: > > I removed a gsave/grestore pair surrounding RendererPS._draw_ps in > > svn-3967. It looks like this fixed the problem (graphics state was being > > lost). I checked contour_demo.py for any unintended side-effects, and > > didn't find any, but please keep an eye out for strange behavior. > > I added this gsave/grestore pair in draw_ps because in a first attempt > to get Ellipse working properly with axis='auto'. I was using an > approach inspired by Michael's branch, which is to create a unit > circle and then apply rotation and scaing transformation to make the > ellipse. The transformation settings were persistent so I wrapped all > of the draw_ps in a save/restore block to insulate them. > > Then I realized that doing the transformation in PS wreaks all kinds > of havoc with the linewidth settings, and reverted the code to doing > the transformations in python, as we have always done. So removing > the save/restore block should be fine, but file it away in the back of > your mind that pushing transformations in the current implementation > may result in unintended weirdness.
Thanks for letting me know. When we first implemented draw_markers in backend_ps, we let the postscript interpretter do the transforms. That turned out to be a disaster. It took forever for ghostscript to render the images, so we went back to doing transforms in mpl. Darren ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel