default cmap in ver. 2.0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

default cmap in ver. 2.0

Slavin, Jonathan
Hi all,

I just installed matplotlib 2.0.  I was surprised that when I created an image plot using imshow I had the same old jet colormap instead of viridis.  I looked in my ~/.confg/matplotlib/matplotlibrc file and the image.cmap line was commented out, so that didn't seem to be the problem.  Just to be sure, I moved that one aside and copied the new one under the matplotlib distribution to its place (which also has that line commented out).  I still get the same result.  Obviously I can fix this either by uncommenting that line or by specifying the cmap in calls to imshow.  But I'm curious, where are those defaults stored?

Regards,
Jon

--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: (617) 496-7981       Cambridge, MA 02138-1516
cell: (781) 363-0035             USA
________________________________________________________


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|

Re: default cmap in ver. 2.0

Benjamin Root
in situations like this, the most common reason is that you aren't actually loading the matplotlib you think you are running. I would double-check by doing:

import matplotlib
print(matplotlib.__version__)

Another trick I use is to type: "pydoc matplotlib" and see what it picked up.

Ben Root

On Thu, Jan 19, 2017 at 4:05 PM, Slavin, Jonathan <[hidden email]> wrote:
Hi all,

I just installed matplotlib 2.0.  I was surprised that when I created an image plot using imshow I had the same old jet colormap instead of viridis.  I looked in my ~/.confg/matplotlib/matplotlibrc file and the image.cmap line was commented out, so that didn't seem to be the problem.  Just to be sure, I moved that one aside and copied the new one under the matplotlib distribution to its place (which also has that line commented out).  I still get the same result.  Obviously I can fix this either by uncommenting that line or by specifying the cmap in calls to imshow.  But I'm curious, where are those defaults stored?

Regards,
Jon

--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: <a href="tel:(617)%20496-7981" value="+16174967981" target="_blank">(617) 496-7981       Cambridge, MA 02138-1516
cell: <a href="tel:(781)%20363-0035" value="+17813630035" target="_blank">(781) 363-0035             USA
________________________________________________________


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users



_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|

Re: default cmap in ver. 2.0

Slavin, Jonathan
Hi Ben,

It's definitely picking up the new matplotlib since many defaults for plotting, e.g. the line color cycle, tick direction, are changed.  It's really just the default colormap that's apparently unchanged.

Jon

On Thu, Jan 19, 2017 at 4:09 PM, Benjamin Root <[hidden email]> wrote:
in situations like this, the most common reason is that you aren't actually loading the matplotlib you think you are running. I would double-check by doing:

import matplotlib
print(matplotlib.__version__)

Another trick I use is to type: "pydoc matplotlib" and see what it picked up.

Ben Root

On Thu, Jan 19, 2017 at 4:05 PM, Slavin, Jonathan <[hidden email]> wrote:
Hi all,

I just installed matplotlib 2.0.  I was surprised that when I created an image plot using imshow I had the same old jet colormap instead of viridis.  I looked in my ~/.confg/matplotlib/matplotlibrc file and the image.cmap line was commented out, so that didn't seem to be the problem.  Just to be sure, I moved that one aside and copied the new one under the matplotlib distribution to its place (which also has that line commented out).  I still get the same result.  Obviously I can fix this either by uncommenting that line or by specifying the cmap in calls to imshow.  But I'm curious, where are those defaults stored?

Regards,
Jon

--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: <a href="tel:(617)%20496-7981" value="+16174967981" target="_blank">(617) 496-7981       Cambridge, MA 02138-1516
cell: <a href="tel:(781)%20363-0035" value="+17813630035" target="_blank">(781) 363-0035             USA
________________________________________________________


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users





--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: (617) 496-7981       Cambridge, MA 02138-1516
cell: (781) 363-0035             USA
________________________________________________________


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|

Re: default cmap in ver. 2.0

Benjamin Root
Ok, then try this to find out what config file is being used:

import matplotlib
print(matplotlib.matplotlib_fname())

Ben Root


On Thu, Jan 19, 2017 at 4:19 PM, Slavin, Jonathan <[hidden email]> wrote:
Hi Ben,

It's definitely picking up the new matplotlib since many defaults for plotting, e.g. the line color cycle, tick direction, are changed.  It's really just the default colormap that's apparently unchanged.

Jon

On Thu, Jan 19, 2017 at 4:09 PM, Benjamin Root <[hidden email]> wrote:
in situations like this, the most common reason is that you aren't actually loading the matplotlib you think you are running. I would double-check by doing:

import matplotlib
print(matplotlib.__version__)

Another trick I use is to type: "pydoc matplotlib" and see what it picked up.

Ben Root

On Thu, Jan 19, 2017 at 4:05 PM, Slavin, Jonathan <[hidden email]> wrote:
Hi all,

I just installed matplotlib 2.0.  I was surprised that when I created an image plot using imshow I had the same old jet colormap instead of viridis.  I looked in my ~/.confg/matplotlib/matplotlibrc file and the image.cmap line was commented out, so that didn't seem to be the problem.  Just to be sure, I moved that one aside and copied the new one under the matplotlib distribution to its place (which also has that line commented out).  I still get the same result.  Obviously I can fix this either by uncommenting that line or by specifying the cmap in calls to imshow.  But I'm curious, where are those defaults stored?

Regards,
Jon

--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: <a href="tel:(617)%20496-7981" value="+16174967981" target="_blank">(617) 496-7981       Cambridge, MA 02138-1516
cell: <a href="tel:(781)%20363-0035" value="+17813630035" target="_blank">(781) 363-0035             USA
________________________________________________________


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users





--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: <a href="tel:(617)%20496-7981" value="+16174967981" target="_blank">(617) 496-7981       Cambridge, MA 02138-1516
cell: <a href="tel:(781)%20363-0035" value="+17813630035" target="_blank">(781) 363-0035             USA
________________________________________________________



_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|

Re: default cmap in ver. 2.0

Slavin, Jonathan
It's showing ~/.config/matplotlib/matplotlibrc  But as I said, the line with image.cmap on it was commented out.  So how are the defaults set for things that are not changed by the matplotlibrc?

Jon

On Thu, Jan 19, 2017 at 4:32 PM, Benjamin Root <[hidden email]> wrote:
Ok, then try this to find out what config file is being used:

import matplotlib
print(matplotlib.matplotlib_fname())

Ben Root


On Thu, Jan 19, 2017 at 4:19 PM, Slavin, Jonathan <[hidden email]> wrote:
Hi Ben,

It's definitely picking up the new matplotlib since many defaults for plotting, e.g. the line color cycle, tick direction, are changed.  It's really just the default colormap that's apparently unchanged.

Jon

On Thu, Jan 19, 2017 at 4:09 PM, Benjamin Root <[hidden email]> wrote:
in situations like this, the most common reason is that you aren't actually loading the matplotlib you think you are running. I would double-check by doing:

import matplotlib
print(matplotlib.__version__)

Another trick I use is to type: "pydoc matplotlib" and see what it picked up.

Ben Root

On Thu, Jan 19, 2017 at 4:05 PM, Slavin, Jonathan <[hidden email]> wrote:
Hi all,

I just installed matplotlib 2.0.  I was surprised that when I created an image plot using imshow I had the same old jet colormap instead of viridis.  I looked in my ~/.confg/matplotlib/matplotlibrc file and the image.cmap line was commented out, so that didn't seem to be the problem.  Just to be sure, I moved that one aside and copied the new one under the matplotlib distribution to its place (which also has that line commented out).  I still get the same result.  Obviously I can fix this either by uncommenting that line or by specifying the cmap in calls to imshow.  But I'm curious, where are those defaults stored?

Regards,
Jon

--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: <a href="tel:(617)%20496-7981" value="+16174967981" target="_blank">(617) 496-7981       Cambridge, MA 02138-1516
cell: <a href="tel:(781)%20363-0035" value="+17813630035" target="_blank">(781) 363-0035             USA
________________________________________________________


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users





--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: <a href="tel:(617)%20496-7981" value="+16174967981" target="_blank">(617) 496-7981       Cambridge, MA 02138-1516
cell: <a href="tel:(781)%20363-0035" value="+17813630035" target="_blank">(781) 363-0035             USA
________________________________________________________





--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: (617) 496-7981       Cambridge, MA 02138-1516
cell: (781) 363-0035             USA
________________________________________________________


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|

Re: default cmap in ver. 2.0

Ryan May-3
My next step would be to prove that the config isn't affecting things by moving it elsewhere and seeing what happens.

Ryan

On Thu, Jan 19, 2017 at 2:47 PM, Slavin, Jonathan <[hidden email]> wrote:
It's showing ~/.config/matplotlib/matplotlibrc  But as I said, the line with image.cmap on it was commented out.  So how are the defaults set for things that are not changed by the matplotlibrc?

Jon

On Thu, Jan 19, 2017 at 4:32 PM, Benjamin Root <[hidden email]> wrote:
Ok, then try this to find out what config file is being used:

import matplotlib
print(matplotlib.matplotlib_fname())

Ben Root


On Thu, Jan 19, 2017 at 4:19 PM, Slavin, Jonathan <[hidden email]> wrote:
Hi Ben,

It's definitely picking up the new matplotlib since many defaults for plotting, e.g. the line color cycle, tick direction, are changed.  It's really just the default colormap that's apparently unchanged.

Jon

On Thu, Jan 19, 2017 at 4:09 PM, Benjamin Root <[hidden email]> wrote:
in situations like this, the most common reason is that you aren't actually loading the matplotlib you think you are running. I would double-check by doing:

import matplotlib
print(matplotlib.__version__)

Another trick I use is to type: "pydoc matplotlib" and see what it picked up.

Ben Root

On Thu, Jan 19, 2017 at 4:05 PM, Slavin, Jonathan <[hidden email]> wrote:
Hi all,

I just installed matplotlib 2.0.  I was surprised that when I created an image plot using imshow I had the same old jet colormap instead of viridis.  I looked in my ~/.confg/matplotlib/matplotlibrc file and the image.cmap line was commented out, so that didn't seem to be the problem.  Just to be sure, I moved that one aside and copied the new one under the matplotlib distribution to its place (which also has that line commented out).  I still get the same result.  Obviously I can fix this either by uncommenting that line or by specifying the cmap in calls to imshow.  But I'm curious, where are those defaults stored?

Regards,
Jon

--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: <a href="tel:(617)%20496-7981" value="+16174967981" target="_blank">(617) 496-7981       Cambridge, MA 02138-1516
cell: <a href="tel:(781)%20363-0035" value="+17813630035" target="_blank">(781) 363-0035             USA
________________________________________________________


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users





--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: <a href="tel:(617)%20496-7981" value="+16174967981" target="_blank">(617) 496-7981       Cambridge, MA 02138-1516
cell: <a href="tel:(781)%20363-0035" value="+17813630035" target="_blank">(781) 363-0035             USA
________________________________________________________





--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: <a href="tel:(617)%20496-7981" value="+16174967981" target="_blank">(617) 496-7981       Cambridge, MA 02138-1516
cell: <a href="tel:(781)%20363-0035" value="+17813630035" target="_blank">(781) 363-0035             USA
________________________________________________________


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users




--
Ryan May


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|

Re: default cmap in ver. 2.0

Benjamin Root
In reply to this post by Slavin, Jonathan
well, that would be matplotlib.defaultParams. It is hard-coded. It serves as the base config, and the rc file simply updates that dictionary. Your situation seems very weird. Can you confirm that rc['image.cmap'] is 'viridis'?

Ben Root

On Thu, Jan 19, 2017 at 4:47 PM, Slavin, Jonathan <[hidden email]> wrote:
It's showing ~/.config/matplotlib/matplotlibrc  But as I said, the line with image.cmap on it was commented out.  So how are the defaults set for things that are not changed by the matplotlibrc?

Jon

On Thu, Jan 19, 2017 at 4:32 PM, Benjamin Root <[hidden email]> wrote:
Ok, then try this to find out what config file is being used:

import matplotlib
print(matplotlib.matplotlib_fname())

Ben Root


On Thu, Jan 19, 2017 at 4:19 PM, Slavin, Jonathan <[hidden email]> wrote:
Hi Ben,

It's definitely picking up the new matplotlib since many defaults for plotting, e.g. the line color cycle, tick direction, are changed.  It's really just the default colormap that's apparently unchanged.

Jon

On Thu, Jan 19, 2017 at 4:09 PM, Benjamin Root <[hidden email]> wrote:
in situations like this, the most common reason is that you aren't actually loading the matplotlib you think you are running. I would double-check by doing:

import matplotlib
print(matplotlib.__version__)

Another trick I use is to type: "pydoc matplotlib" and see what it picked up.

Ben Root

On Thu, Jan 19, 2017 at 4:05 PM, Slavin, Jonathan <[hidden email]> wrote:
Hi all,

I just installed matplotlib 2.0.  I was surprised that when I created an image plot using imshow I had the same old jet colormap instead of viridis.  I looked in my ~/.confg/matplotlib/matplotlibrc file and the image.cmap line was commented out, so that didn't seem to be the problem.  Just to be sure, I moved that one aside and copied the new one under the matplotlib distribution to its place (which also has that line commented out).  I still get the same result.  Obviously I can fix this either by uncommenting that line or by specifying the cmap in calls to imshow.  But I'm curious, where are those defaults stored?

Regards,
Jon

--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: <a href="tel:(617)%20496-7981" value="+16174967981" target="_blank">(617) 496-7981       Cambridge, MA 02138-1516
cell: <a href="tel:(781)%20363-0035" value="+17813630035" target="_blank">(781) 363-0035             USA
________________________________________________________


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users





--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: <a href="tel:(617)%20496-7981" value="+16174967981" target="_blank">(617) 496-7981       Cambridge, MA 02138-1516
cell: <a href="tel:(781)%20363-0035" value="+17813630035" target="_blank">(781) 363-0035             USA
________________________________________________________





--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: <a href="tel:(617)%20496-7981" value="+16174967981" target="_blank">(617) 496-7981       Cambridge, MA 02138-1516
cell: <a href="tel:(781)%20363-0035" value="+17813630035" target="_blank">(781) 363-0035             USA
________________________________________________________



_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|

Re: default cmap in ver. 2.0

Weining Duan
Hi,

I’ve read your talk and decided to make some test case on my computer. Just expecting to offer some more test case and information.

As for now, I find everything works fine, including the colormap for `imshow()` function. I’ve checked the rc file, that line is commented out. So its really weird of Jon's situation.

I’m using anaconda + matplotlib 2.0 on MacOS. 

Weining Duan

On 2017年1月20日 +0800 06:21, Benjamin Root <[hidden email]>, wrote:
well, that would be matplotlib.defaultParams. It is hard-coded. It serves as the base config, and the rc file simply updates that dictionary. Your situation seems very weird. Can you confirm that rc['image.cmap'] is 'viridis'?

Ben Root

On Thu, Jan 19, 2017 at 4:47 PM, Slavin, Jonathan <[hidden email]> wrote:
It's showing ~/.config/matplotlib/matplotlibrc  But as I said, the line with image.cmap on it was commented out.  So how are the defaults set for things that are not changed by the matplotlibrc?

Jon

On Thu, Jan 19, 2017 at 4:32 PM, Benjamin Root <[hidden email]> wrote:
Ok, then try this to find out what config file is being used:

import matplotlib
print(matplotlib.matplotlib_fname())

Ben Root


On Thu, Jan 19, 2017 at 4:19 PM, Slavin, Jonathan <[hidden email]> wrote:
Hi Ben,

It's definitely picking up the new matplotlib since many defaults for plotting, e.g. the line color cycle, tick direction, are changed.  It's really just the default colormap that's apparently unchanged.

Jon

On Thu, Jan 19, 2017 at 4:09 PM, Benjamin Root <[hidden email]> wrote:
in situations like this, the most common reason is that you aren't actually loading the matplotlib you think you are running. I would double-check by doing:

import matplotlib
print(matplotlib.__version__)

Another trick I use is to type: "pydoc matplotlib" and see what it picked up.

Ben Root

On Thu, Jan 19, 2017 at 4:05 PM, Slavin, Jonathan <[hidden email]> wrote:
Hi all,

I just installed matplotlib 2.0.  I was surprised that when I created an image plot using imshow I had the same old jet colormap instead of viridis.  I looked in my ~/.confg/matplotlib/matplotlibrc file and the image.cmap line was commented out, so that didn't seem to be the problem.  Just to be sure, I moved that one aside and copied the new one under the matplotlib distribution to its place (which also has that line commented out).  I still get the same result.  Obviously I can fix this either by uncommenting that line or by specifying the cmap in calls to imshow.  But I'm curious, where are those defaults stored?

Regards,
Jon

--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: <a href="tel:(617)%20496-7981" value="+16174967981" target="_blank">(617) 496-7981       Cambridge, MA 02138-1516
cell: <a href="tel:(781)%20363-0035" value="+17813630035" target="_blank">(781) 363-0035             USA
________________________________________________________


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users





--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: <a href="tel:(617)%20496-7981" value="+16174967981" target="_blank">(617) 496-7981       Cambridge, MA 02138-1516
cell: <a href="tel:(781)%20363-0035" value="+17813630035" target="_blank">(781) 363-0035             USA
________________________________________________________





--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: <a href="tel:(617)%20496-7981" value="+16174967981" target="_blank">(617) 496-7981       Cambridge, MA 02138-1516
cell: <a href="tel:(781)%20363-0035" value="+17813630035" target="_blank">(781) 363-0035             USA
________________________________________________________


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-user

_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|

Re: default cmap in ver. 2.0

Slavin, Jonathan
Not quite sure what happened, but now it appears that the default cmap is viridis.  I wonder if there's some sort of cache for the rcparams.  In any case in the words of Emily Litella, "never mind"!

Jon

On Fri, Jan 20, 2017 at 8:04 AM, Weining Duan <[hidden email]> wrote:
Hi,

I’ve read your talk and decided to make some test case on my computer. Just expecting to offer some more test case and information.

As for now, I find everything works fine, including the colormap for `imshow()` function. I’ve checked the rc file, that line is commented out. So its really weird of Jon's situation.

I’m using anaconda + matplotlib 2.0 on MacOS. 

Weining Duan

On 2017年1月20日 +0800 06:21, Benjamin Root <[hidden email]>, wrote:
well, that would be matplotlib.defaultParams. It is hard-coded. It serves as the base config, and the rc file simply updates that dictionary. Your situation seems very weird. Can you confirm that rc['image.cmap'] is 'viridis'?

Ben Root

On Thu, Jan 19, 2017 at 4:47 PM, Slavin, Jonathan <[hidden email]> wrote:
It's showing ~/.config/matplotlib/matplotlibrc  But as I said, the line with image.cmap on it was commented out.  So how are the defaults set for things that are not changed by the matplotlibrc?

Jon

On Thu, Jan 19, 2017 at 4:32 PM, Benjamin Root <[hidden email]> wrote:
Ok, then try this to find out what config file is being used:

import matplotlib
print(matplotlib.matplotlib_fname())

Ben Root


On Thu, Jan 19, 2017 at 4:19 PM, Slavin, Jonathan <[hidden email]> wrote:
Hi Ben,

It's definitely picking up the new matplotlib since many defaults for plotting, e.g. the line color cycle, tick direction, are changed.  It's really just the default colormap that's apparently unchanged.

Jon

On Thu, Jan 19, 2017 at 4:09 PM, Benjamin Root <[hidden email]> wrote:
in situations like this, the most common reason is that you aren't actually loading the matplotlib you think you are running. I would double-check by doing:

import matplotlib
print(matplotlib.__version__)

Another trick I use is to type: "pydoc matplotlib" and see what it picked up.

Ben Root

On Thu, Jan 19, 2017 at 4:05 PM, Slavin, Jonathan <[hidden email]> wrote:
Hi all,

I just installed matplotlib 2.0.  I was surprised that when I created an image plot using imshow I had the same old jet colormap instead of viridis.  I looked in my ~/.confg/matplotlib/matplotlibrc file and the image.cmap line was commented out, so that didn't seem to be the problem.  Just to be sure, I moved that one aside and copied the new one under the matplotlib distribution to its place (which also has that line commented out).  I still get the same result.  Obviously I can fix this either by uncommenting that line or by specifying the cmap in calls to imshow.  But I'm curious, where are those defaults stored?

Regards,
Jon

--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: <a href="tel:(617)%20496-7981" value="+16174967981" target="_blank">(617) 496-7981       Cambridge, MA 02138-1516
cell: <a href="tel:(781)%20363-0035" value="+17813630035" target="_blank">(781) 363-0035             USA
________________________________________________________


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users





--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: <a href="tel:(617)%20496-7981" value="+16174967981" target="_blank">(617) 496-7981       Cambridge, MA 02138-1516
cell: <a href="tel:(781)%20363-0035" value="+17813630035" target="_blank">(781) 363-0035             USA
________________________________________________________





--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: <a href="tel:(617)%20496-7981" value="+16174967981" target="_blank">(617) 496-7981       Cambridge, MA 02138-1516
cell: <a href="tel:(781)%20363-0035" value="+17813630035" target="_blank">(781) 363-0035             USA
________________________________________________________


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-user



--
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
[hidden email]       60 Garden Street, MS 83
phone: (617) 496-7981       Cambridge, MA 02138-1516
cell: (781) 363-0035             USA
________________________________________________________


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users