Adding colormaps?

Albert-Jan Roskam sjeik_appie at hotmail.com
Mon Jan 23 15:35:52 EST 2017


(sorry for top-posting)
I does not appear to be possible in matplolibrc (1). But you can use matplotlib.cm.register_cmap to register new cmaps (2) such as these (3).

(Note: I did not try this)

(1)http://matplotlib.org/1.4.0/users/customizing.html
(2)http://matplotlib.org/api/cm_api.html
(3)https://github.com/BIDS/colormap/blob/master/colormaps.py
________________________________
From: Python-list <python-list-bounces+sjeik_appie=hotmail.com at python.org> on behalf of Martin Schöön <martin.schoon at gmail.com>
Sent: Saturday, January 21, 2017 8:42:29 PM
To: python-list at python.org
Subject: Re: Adding colormaps?

Den 2017-01-21 skrev Gilmeh Serda <gilmeh.serdah at nothing.here.invalid>:
> On Wed, 18 Jan 2017 21:41:34 +0000, Martin Schöön wrote:
>
>> What I would like to do is to add the perceptually uniform sequential
>> colormaps introduced in version 1.5.something. I would like to do this
>> without breaking my Debian system in which Matplotlib version 1.4.2 is
>> the newest version available in the repo.
>
> Haven't checked, but I assume you can get the source. Compile it but
> don't install it and then use the result in virtualenv, maybe?
>
I am hoping for directions to a config file to download and place
somewhere...

/Martin
--
https://mail.python.org/mailman/listinfo/python-list


More information about the Python-list mailing list