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 0522413

Browse filesBrowse files
committed
Change default image interpolation to nearest
1 parent bf51375 commit 0522413
Copy full SHA for 0522413

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
@@ -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

Copy file name to clipboardExpand all lines: matplotlibrc.template
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ backend : %(backend)s
352352

353353
### IMAGES
354354
#image.aspect : equal # equal | auto | a number
355-
#image.interpolation : bilinear # see help(imshow) for options
355+
#image.interpolation : nearest # see help(imshow) for options
356356
#image.cmap : jet # gray | jet etc...
357357
#image.lut : 256 # the size of the colormap lookup table
358358
#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.