Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 28c632f

Browse files
committed
Change default color map (Fix #875)
1 parent 3e7471a commit 28c632f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/rcsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ def validate_hist_bins(s):
940940

941941
'image.aspect': ['equal', validate_aspect], # equal, auto, a number
942942
'image.interpolation': ['nearest', six.text_type],
943-
'image.cmap': ['jet', six.text_type], # one of gray, jet, etc
943+
'image.cmap': ['viridis', six.text_type], # one of gray, jet, etc
944944
'image.lut': [256, validate_int], # lookup table
945945
'image.origin': ['upper', six.text_type], # lookup table
946946
'image.resample': [False, validate_bool],

matplotlibrc.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ backend : $TEMPLATE_BACKEND
427427
### IMAGES
428428
#image.aspect : equal # equal | auto | a number
429429
#image.interpolation : nearest # see help(imshow) for options
430-
#image.cmap : jet # gray | jet etc...
430+
#image.cmap : viridis # A colormap name, gray etc...
431431
#image.lut : 256 # the size of the colormap lookup table
432432
#image.origin : upper # lower | upper
433433
#image.resample : False

0 commit comments

Comments
 (0)