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

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/matplotlib/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,8 @@ class NonUniformImage(AxesImage):
def __init__(self, ax, **kwargs):
"""
kwargs are identical to those for AxesImage, except
that 'interpolation' defaults to 'nearest', and 'bilinear'
is the only alternative.
that 'nearest' and 'bilinear' are the only supported 'interpolation'
options.
"""
interp = kwargs.pop('interpolation', 'nearest')
AxesImage.__init__(self, ax,
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/rcsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ def validate_cycler(s):
'mathtext.fallback_to_cm': [True, validate_bool],

'image.aspect': ['equal', validate_aspect], # equal, auto, a number
'image.interpolation': ['bilinear', six.text_type],
'image.interpolation': ['nearest', six.text_type],
'image.cmap': ['jet', six.text_type], # one of gray, jet, etc
'image.lut': [256, validate_int], # lookup table
'image.origin': ['upper', six.text_type], # lookup table
Expand Down
2 changes: 1 addition & 1 deletion matplotlibrc.template
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ backend : %(backend)s

### IMAGES
#image.aspect : equal # equal | auto | a number
#image.interpolation : bilinear # see help(imshow) for options
#image.interpolation : nearest # see help(imshow) for options
#image.cmap : jet # gray | jet etc...
#image.lut : 256 # the size of the colormap lookup table
#image.origin : upper # lower | upper
Expand Down