|
From: Darren D. <dd...@co...> - 2005-03-07 16:20:39
|
Hi Eli,
Have you tried simply calling savefig('file.eps')? You shouldnt need to worry
about switching backends.
Darren
On Monday 07 March 2005 10:37 am, Eli Glaser wrote:
> Hello all,
>
> First let me say how much I appreciate matplotlib and the matplotlib
> community.
>
> I currently have a wxPython application which embeds a matplotlib window
> using the WXAgg backend. I use this
> application to generate plots based on some simple user inputs. After I
> get the plot looking the way I like, I have
> a "Save Plot" button which basically calls
> self.canvas.print_figure(filename,...). This works great for saving to
> JPG and PNG format. What I'd like to do is be able to save to PS or EPS
> format. Is this possible?
>
> It seems like there is an switch_backend() function which might be of help.
> Before I go down that route, I'd like to know
> if it is possible to use the WXAgg backend for normal plotting to the
> screen and then switch_backend(PS), redraw the
> plot, save using print_figure() or savefig() to a *.ps file, and then
> switch_backend(WXAgg) to resume interactive
> plotting on the screen.
>
> Thanks,
>
> Eli
>
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
Darren
|