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

Skip to content

Commit 0729ddb

Browse files
committed
Fix places where "auto" was not listed as valid interpolation_stage.
1 parent b01462c commit 0729ddb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/backends/qt_editor/figureoptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def prepare_data(d, init):
165165
'Interpolation',
166166
[mappable.get_interpolation(), *interpolations]))
167167

168-
interpolation_stages = ['data', 'rgba']
168+
interpolation_stages = ['data', 'rgba', 'auto']
169169
mappabledata.append((
170170
'Interpolation stage',
171171
[mappable.get_interpolation_stage(), *interpolation_stages]))

lib/matplotlib/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ def get_interpolation_stage(self):
722722
"""
723723
Return when interpolation happens during the transform to RGBA.
724724
725-
One of 'data', 'rgba'.
725+
One of 'data', 'rgba', 'auto'.
726726
"""
727727
return self._interpolation_stage
728728

0 commit comments

Comments
 (0)