X Tutup
Skip to content

Document how to set viridis as default colormap in mpl 1.x #6265

@jankatins

Description

@jankatins

I've now tried to google how to set viridis default matplotlib and none of the first 20 pages contain any information how to set this as the default colormap (e.g. in a notebook session). It also looks like there is no "mpl20" style available and the docs only talk about "use default and you get it in the future".

The second page in my google results contain a stackoverflow post which does not work:

import colormaps as cmaps
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-52-2b4a939ab51e> in <module>()
----> 1 import colormaps as cmaps

ImportError: No module named 'colormaps'

[conda env with py3.5 and latest available mpl from today]

Please add this information now so that google at least contains something useful and not only "in the future" talk when the map is available now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup