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 useful
to have these suggestions recorded on the Matplotlib web site).
If amongst the readers of this mailing list there are also some
Matplotlib developers, I'd like to say them that to have the CMYK
option incorporated into Matplotlib (for example like it is
incorporated into the MATLAB print command) will be a great
improvement.
I started using Python only because I wanted to stop using MATLAB.
I've found Python a lot more powerful than MATLAB on nearly all
aspects.
When someone like me has to make some publications and does not have a
lot of time to try tools, he will be discouraged in using Matplotlib
(and Python) and he will return to MATLAB again (and this is what
happened to me until now).
So, developers, please seriously consider adding this option to Matplotlib.
The first sentence of the web site is "matplotlib is a python 2D
plotting library which produces publication quality figures". This is
true (I think they're better than Matlab figures) ... I only hope it
will be more easy in the future also to actually use those figures in
publications.
Thanks to all of you.
Kind regards,
Michele
2010/8/26 Jae-Joon Lee <lee.j.joon@...287...>:
···
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
On Fri, Aug 27, 2010 at 6:12 AM, Robert Kern <robert.kern@...287...> wrote:
On 8/26/10 3:26 PM, Fernando Perez wrote:
On Thu, Aug 26, 2010 at 11:39 AM, Eric Firing<efiring@...202...> 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 looks old, so it may have bit-rotted in the meantime).
Another option would be to ctypes-wrap the calls of littleCMS one
needs just for this and be done with it. Not very elegant, but it
might get the OP out of a bind with minimal work, and he'd have a
little eps2cmyk.py script he could run on his MPL-generated EPS files
for colorspace conversion. Just an afternoon hack. 
You can also use my numpy-aware wrappers:
http://www.enthought.com/~rkern/cgi-bin/hgwebdir.cgi/lcms/
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
Michele De Stefano
http://www.linkedin.com/in/micdestefano
http://code.google.com/p/mds-utils
http://micheledestefano.xoom.it