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

Skip to content

Commit 65b3654

Browse files
jenshnielsenmdboom
authored andcommitted
Change default image interpolation to nearest
1 parent 16698e8 commit 65b3654

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
@@ -939,7 +939,7 @@ def validate_hist_bins(s):
939939
'mathtext.fallback_to_cm': [True, validate_bool],
940940

941941
'image.aspect': ['equal', validate_aspect], # equal, auto, a number
942-
'image.interpolation': ['bilinear', six.text_type],
942+
'image.interpolation': ['nearest', six.text_type],
943943
'image.cmap': ['jet', 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

matplotlibrc.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ backend : %(backend)s
410410

411411
### IMAGES
412412
#image.aspect : equal # equal | auto | a number
413-
#image.interpolation : bilinear # see help(imshow) for options
413+
#image.interpolation : nearest # see help(imshow) for options
414414
#image.cmap : jet # gray | jet etc...
415415
#image.lut : 256 # the size of the colormap lookup table
416416
#image.origin : upper # lower | upper

0 commit comments

Comments
 (0)