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

Skip to content

Commit 4fa171a

Browse files
committed
Use image.resample == True
1 parent ebb5726 commit 4fa171a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

doc/users/whats_new/style_changes.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ Images
5959
- The default shading mode is now ``overlay``. Formerly, it was
6060
``hsv``.
6161

62+
- The default value for ``image.resample`` is now ``True``. This will
63+
apply interpolation for both upsampling and downsampling of an
64+
image.
65+
6266
Fonts
6367
`````
6468

lib/matplotlib/rcsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ def validate_hist_bins(s):
943943
'image.cmap': ['viridis', six.text_type], # one of gray, jet, etc
944944
'image.lut': [256, validate_int], # lookup table
945945
'image.origin': ['upper', six.text_type], # lookup table
946-
'image.resample': [False, validate_bool],
946+
'image.resample': [True, validate_bool],
947947
# Specify whether vector graphics backends will combine all images on a
948948
# set of axes into a single composite image
949949
'image.composite_image': [True, validate_bool],

matplotlibrc.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ backend : %(backend)s
418418
#image.cmap : viridis # A colormap name, gray etc...
419419
#image.lut : 256 # the size of the colormap lookup table
420420
#image.origin : upper # lower | upper
421-
#image.resample : False
421+
#image.resample : True
422422
#image.composite_image : True # When True, all the images on a set of axes are
423423
# combined into a single composite image before
424424
# saving a figure as a vector graphics file,

0 commit comments

Comments
 (0)