Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c76aeca

Browse filesBrowse files
committed
Change default image interpolation to nearest
1 parent 8befb06 commit c76aeca
Copy full SHA for c76aeca

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎lib/matplotlib/rcsetup.py

Copy file name to clipboardExpand all lines: lib/matplotlib/rcsetup.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: matplotlibrc.template
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.