From 0b53264c322420038fc45a8154268c4aaaaa1904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Sat, 14 Dec 2024 16:42:54 +0100 Subject: [PATCH] BUG: fix compatibility with matplotlib 3.10 for images that have both a custom background color and a non-transparent 'bad' color --- yt/visualization/base_plot_types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/yt/visualization/base_plot_types.py b/yt/visualization/base_plot_types.py index 78a1dd54591..f570fadbcf9 100644 --- a/yt/visualization/base_plot_types.py +++ b/yt/visualization/base_plot_types.py @@ -326,6 +326,7 @@ def _init_image(self, data, extent, aspect, *, alpha: AlphaT = None): aspect=aspect, cmap=self.colorbar_handler.cmap, interpolation="nearest", + interpolation_stage="data", transform=transform, alpha=alpha, )