8000 Change default image interpolation to nearest · matplotlib/matplotlib@c76aeca · GitHub
[go: up one dir, main page]

Skip to content

Commit c76aeca

Browse files
committed
Change default image interpolation to nearest
1 parent 8befb06 commit c76aeca

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
@@ -616,7 +616,7 @@ def __call__(self, s):
616616
'mathtext.fallback_to_cm': [True, validate_bool],
617617

618618
'image.aspect': ['equal', validate_aspect], # equal, auto, a number
619-
'image.interpolation': ['bilinear', six.text_type],
619+
'image.interpolation': ['nearest', six.text_type],
620620
'image.cmap': ['jet', six.text_type], # one of gray, jet, etc
621621
'image.lut': [256, validate_int], # lookup table
622622
'image.origin': ['upper', six.text_type], # lookup table

matplotlibrc.template

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

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

0 commit comments

Comments
 (0)
0