diff --git a/yt/visualization/base_plot_types.py b/yt/visualization/base_plot_types.py index 027f10b5abf..bcea5341f3e 100644 --- a/yt/visualization/base_plot_types.py +++ b/yt/visualization/base_plot_types.py @@ -489,7 +489,7 @@ def _toggle_axes(self, choice, draw_frame=None): # last checked with Matplotlib 3.5 warnings.warn( f"Previously set background color {self.colorbar_handler.background_color} " - "has no effect. Pass `draw_axis=True` if you wish to preserve background color.", + "has no effect. Pass `draw_frame=True` if you wish to preserve background color.", stacklevel=4, ) self.axes.set_frame_on(draw_frame)