Re: [Matplotlib-users] CMYK images

2010-08-27 Thread Michele De Stefano
Thanks a lot to all of you. First of all, I have to say that I agree with Benjamin Root. I'll try the tools some of you suggested (no problem in installing and trying, as soon as I can ... but it's good to know that there is a way to generate CMYK images using Python ... as I told it will be

Re: [Matplotlib-users] CMYK images

2010-08-26 Thread Michael Droettboom
matplotlib does not have any built-in support for any color spaces other than RGB. You would need to use an external tool (if such a thing exists) to convert color spaces. Mike On 08/26/2010 10:06 AM, Michele De Stefano wrote: Is it possible to export EPS images with the CMYK color scheme ?

Re: [Matplotlib-users] CMYK images

2010-08-26 Thread Daπid
Image Magick and Inkscape seem to work for this. Probably the first one is easier to automatize in batch processing. On Thu, Aug 26, 2010 at 4:21 PM, Michael Droettboom md...@stsci.edu wrote: matplotlib does not have any built-in support for any color spaces other than RGB.  You would need to

Re: [Matplotlib-users] CMYK images

2010-08-26 Thread Michele De Stefano
Thanks. I think it will be useful to have cookbook instructions to perform this task on the Matplotlib web site. Meanwhile, is there anyone that can provide those instructions, please (I've not any of these tools installed yet, and I don't know them). ? 2010/8/26 Daπid davidmen...@gmail.com:

Re: [Matplotlib-users] CMYK images

2010-08-26 Thread Jonathan Slavin
This is starting to get off topic from matplotlib, but it is relevant to creating good EPS figures... When using ImageMagick to transform from to an EPS, your results will be much improved by using the parameter -density 288. This increases the resolution (and thus results in a much bigger

Re: [Matplotlib-users] CMYK images

2010-08-26 Thread Benjamin Root
On Thu, Aug 26, 2010 at 11:27 AM, Jonathan Slavin jsla...@cfa.harvard.eduwrote: This is starting to get off topic from matplotlib, but it is relevant to creating good EPS figures... When using ImageMagick to transform from to an EPS, your results will be much improved by using the parameter

Re: [Matplotlib-users] CMYK images

2010-08-26 Thread Eric Firing
On 08/26/2010 05:49 AM, Benjamin Root wrote: On Thu, Aug 26, 2010 at 9:39 AM, Daπid davidmen...@gmail.com mailto:davidmen...@gmail.com wrote: Image Magick and Inkscape seem to work for this. Probably the first one is easier to automatize in batch processing. Quick warning about

Re: [Matplotlib-users] CMYK images

2010-08-26 Thread Fernando Perez
On Thu, Aug 26, 2010 at 11:39 AM, Eric Firing efir...@hawaii.edu wrote: It's not trivial.  This might help: http://www.littlecms.com/ See the tutorial for some nice background info. And this could be a good start for a python-based workflow: http://www.cazabon.com/pyCMS/ *if* it works (it

Re: [Matplotlib-users] CMYK images

2010-08-26 Thread Christopher Barker
Fernando Perez wrote: http://www.littlecms.com/ PIL optionally uses littlecms -- so it may have what you need built in. -Chris NOTE: I haven't read the rest of this thread, to sorry if this is redundant information. -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division

Re: [Matplotlib-users] CMYK images

2010-08-26 Thread Robert Kern
On 8/26/10 3:26 PM, Fernando Perez wrote: On Thu, Aug 26, 2010 at 11:39 AM, Eric Firingefir...@hawaii.edu wrote: It's not trivial. This might help: http://www.littlecms.com/ See the tutorial for some nice background info. And this could be a good start for a python-based workflow:

Re: [Matplotlib-users] CMYK images

2010-08-26 Thread Jae-Joon Lee
While not a full solution, I have been playing with a ps backend that saves images (and only images) in CMYK color. lcms is required for color transform. http://github.com/leejjoon/mpl_ps_cmyk For example, import mpl_toolkits.ps_cmyk plt.savefig(test_cmyk.eps, format=eps_cmyk) Regards, -JJ