Skip to content

Commit

Permalink
Backport PR #5083: BUG: fix compatibility with matplotlib 3.10 for im…
Browse files Browse the repository at this point in the history
…ages that have both a custom background color and a non-transparent 'bad' color
  • Loading branch information
chrishavlin authored and meeseeksmachine committed Dec 16, 2024
1 parent 47d752a commit c04e34d
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 c04e34d

Please sign in to comment.