[Matplotlib-devel] [rfc] a better interchange format for colormaps

Eric Firing efiring at hawaii.edu
Wed Apr 20 22:35:05 EDT 2016


On 2016/04/20 1:59 PM, Daniele Nicolodi wrote:
> On 4/20/16 5:22 PM, Nathaniel Smith wrote:
>> I wrote up a little spec to
>> standardize a way of storing and distributing colormaps in JSON, with
>> the hope that we can convince everyone to implement this and stop
>> writing silly little conversion scripts all the time.
>
> While I'm not a fan of Matlab, I think it would be nice to be able to
> use colormaps defined in this way with it. It is a few years I'm not
> working in Matlab, but at the time there were no built-in tools to read
> JSON files. It would be unfortunate if this interchange format would
> depend on a large third party library to be used with Matlab.

I haven't tried it (I don't use Matlab any more), but it looks like this 
small third party library takes care of it:

https://github.com/fangq/jsonlab

Eric

>
> Cheers,
> Daniele
>
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-devel
>



More information about the Matplotlib-devel mailing list