Skip to content

Commit

Permalink
Change default color map (Fix matplotlib#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Nov 23, 2015
1 parent dacb68a commit b13e456
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions doc/users/whats_new/style_changes.rst
Expand Up @@ -24,6 +24,9 @@ These changes include:
has been changed. It is based on the Dark2 qualitative color
palette from `colorbrewer <http://colorbrewer2.org/>`__.

- The default color map used for images and pcolor meshes, etc., has
changed from ``jet`` to ``viridis``.

- For markers, scatter plots, bar charts and pie charts, there is no
longer a black outline around filled markers by default.

Expand Down Expand Up @@ -57,5 +60,6 @@ These changes include:

- By default, caps on the ends of errorbars are not present.

- The ''Blues'' colormap has been adjusted to be perceptually uniform. The old
``blues`` colormap is available under the name ``legacy_Blues``.
- The ''Blues'' colormap has been adjusted to be perceptually uniform.
The old ``blues`` colormap is available under the name
``legacy_Blues``.
2 changes: 1 addition & 1 deletion lib/matplotlib/rcsetup.py
Expand Up @@ -907,7 +907,7 @@ def validate_cycler(s):

'image.aspect': ['equal', validate_aspect], # equal, auto, a number
'image.interpolation': ['nearest', six.text_type],
'image.cmap': ['jet', six.text_type], # one of gray, jet, etc
'image.cmap': ['viridis', six.text_type], # one of gray, jet, etc
'image.lut': [256, validate_int], # lookup table
'image.origin': ['upper', six.text_type], # lookup table
'image.resample': [False, validate_bool],
Expand Down
2 changes: 1 addition & 1 deletion matplotlibrc.template
Expand Up @@ -428,7 +428,7 @@ backend : %(backend)s
### IMAGES
#image.aspect : equal # equal | auto | a number
#image.interpolation : nearest # see help(imshow) for options
#image.cmap : jet # gray | jet etc...
#image.cmap : viridis # A colormap name, gray etc...
#image.lut : 256 # the size of the colormap lookup table
#image.origin : upper # lower | upper
#image.resample : False
Expand Down

0 comments on commit b13e456

Please sign in to comment.