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

Skip to content

Commit 7e4924f

Browse files
committed
Change default image interpolation to nearest
1 parent 696ff9f commit 7e4924f

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
@@ -894,7 +894,7 @@ def validate_cycler(s):
894894
'mathtext.fallback_to_cm': [True, validate_bool],
895895

896896
'image.aspect': ['equal', validate_aspect], # equal, auto, a number
897-
'image.interpolation': ['bilinear', six.text_type],
897+
'image.interpolation': ['nearest', six.text_type],
898898
'image.cmap': ['jet', six.text_type], # one of gray, jet, etc
899899
'image.lut': [256, validate_int], # lookup table
900900
'image.origin': ['upper', six.text_type], # lookup table

matplotlibrc.template

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

354354
### IMAGES
355355
#image.aspect : equal # equal | auto | a number
356-
#image.interpolation : bilinear # see help(imshow) for options
356+
#image.interpolation : nearest # see help(imshow) for options
357357
#image.cmap : jet # gray | jet etc...
358358
#image.lut : 256 # the size of the colormap lookup table
359359
#image.origin : upper # lower | upper

0 commit comments

Comments
 (0)