Skip to content

Commit

Permalink
Merge pull request #5083 from neutrinoceros/viz/compat_mpl_3.10
Browse files Browse the repository at this point in the history
BUG: fix compatibility with matplotlib 3.10 for images that have both a custom background color and a non-transparent 'bad' color
  • Loading branch information
chrishavlin authored Dec 16, 2024
2 parents f9fa108 + 0b53264 commit 8c467da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yt/visualization/base_plot_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit 8c467da

Please sign in to comment.