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.k...@gmail.com> wrote:
> On 8/26/10 3:26 PM, Fernando Perez wrote:
>> 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 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

Reply via email to