Skip to content

Commit

Permalink
allow annotate_grids to force cmap to respect max_levels (#4658)
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale authored Sep 6, 2023
1 parent ee18e0f commit 27751ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt/visualization/plot_modifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ def __call__(self, plot):
edgecolors = colorConverter.to_rgba(self.edgecolors, alpha=self.alpha)
else: # use colormap if not explicitly overridden by edgecolors
if self.cmap is not None:
color_bounds = [0, plot.data.ds.index.max_level]
color_bounds = [0, max_level]
edgecolors = (
apply_colormap(
levels[visible] * 1.0,
Expand Down

0 comments on commit 27751ba

Please sign in to comment.