From 0729ddb97882549cd16b70ecf5cb664d294970df Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Thu, 5 Sep 2024 17:20:15 +0200 Subject: [PATCH] Fix places where "auto" was not listed as valid interpolation_stage. --- lib/matplotlib/backends/qt_editor/figureoptions.py | 2 +- lib/matplotlib/image.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/backends/qt_editor/figureoptions.py b/lib/matplotlib/backends/qt_editor/figureoptions.py index c36bbeb62641..529f45829999 100644 --- a/lib/matplotlib/backends/qt_editor/figureoptions.py +++ b/lib/matplotlib/backends/qt_editor/figureoptions.py @@ -165,7 +165,7 @@ def prepare_data(d, init): 'Interpolation', [mappable.get_interpolation(), *interpolations])) - interpolation_stages = ['data', 'rgba'] + interpolation_stages = ['data', 'rgba', 'auto'] mappabledata.append(( 'Interpolation stage', [mappable.get_interpolation_stage(), *interpolation_stages])) diff --git a/lib/matplotlib/image.py b/lib/matplotlib/image.py index 95994201b94e..0a3782f99309 100644 --- a/lib/matplotlib/image.py +++ b/lib/matplotlib/image.py @@ -722,7 +722,7 @@ def get_interpolation_stage(self): """ Return when interpolation happens during the transform to RGBA. - One of 'data', 'rgba'. + One of 'data', 'rgba', 'auto'. """ return self._interpolation_stage