Re: [matplotlib-devel] A small improvement to plot directive

2010-02-03 Thread Fernando Perez
On Thu, Jan 28, 2010 at 2:51 PM, Fernando Perez wrote: > Thanks, with your and John's (off-list) approvals, it's committed. > The patch that went in had more docs than what I posted here, but the > code is identical. Oops, somehow my commit had never made it, I just noticed now I was trying to us

Re: [matplotlib-devel] registerable backend and minor refactoring of backend-ps

2010-02-03 Thread Jae-Joon Lee
Nothing much in the regards of the functionality. It only provides a way to use custom backends with "savefig", which I think is more convenient for interactive use. For example, with the ps_cmyk backend that I'm playing with, the only thing that I need to do is to import the module (ps_cmyk) and

Re: [matplotlib-devel] registerable backend and minor refactoring of backend-ps

2010-02-03 Thread Ryan May
On Wed, Feb 3, 2010 at 2:01 PM, Jae-Joon Lee wrote: > Dear all, > > I just committed a small change that enables a user to register a > custom backend that will be used with "savefig". > For example, > > import matplotlib.backend_bases > from matplotlib.backends.backend_ps import FigureCanvasPS, R

[matplotlib-devel] ps backend with images in cmyk

2010-02-03 Thread Jae-Joon Lee
I'm experimenting with a customized ps backend that saves images in cmyk colorspace. It simply converts the rgb image to cmyk (using lcms), and nothing more (i.e., it does not embed the icc profile inside the eps file). While I don't see practical usefulness of this other than for a previewing purp

[matplotlib-devel] registerable backend and minor refactoring of backend-ps

2010-02-03 Thread Jae-Joon Lee
Dear all, I just committed a small change that enables a user to register a custom backend that will be used with "savefig". For example, import matplotlib.backend_bases from matplotlib.backends.backend_ps import FigureCanvasPS, RendererPS class RendererPSCustom(RendererPS): def draw_path(se