Save Chaco plot as postscript

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Save Chaco plot as postscript

Robert Unguran
Hi,

I would like to know that is there any opportunity to save Chaco plot as
postscript. If yes how?

All the best,
Robert.
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: Save Chaco plot as postscript

John Wiggins
Yes it's possible. The caveat is that it's not quite built in to Chaco.

These two files show how it's done:
chaco/tools/save_tool.py
chaco/pdf_graphics_context.py

PdfPlotGraphicsContext would of course need to be replaced by a PsPlotGraphicsContext. That's the main missing piece here. There is already a PS kiva backend(kiva.ps) that can generate the postscript output.

-- John

On Wed, Nov 21, 2012 at 8:37 AM, Robert Unguran <[hidden email]> wrote:
Hi,

I would like to know that is there any opportunity to save Chaco plot as
postscript. If yes how?

All the best,
Robert.
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev


_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev