From 9c863efd6587aaf181e8086c346cfb76bfdedeff Mon Sep 17 00:00:00 2001 From: Cameron Hummels Date: Thu, 25 Aug 2022 23:54:07 -0700 Subject: [PATCH 1/2] Correcting deceptive typo in error message. --- yt/visualization/base_plot_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt/visualization/base_plot_types.py b/yt/visualization/base_plot_types.py index 027f10b5abf..3fc17846b20 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_axes=True` if you wish to preserve background color.", stacklevel=4, ) self.axes.set_frame_on(draw_frame) From c3dab7d09711f585a54744f596633b0dc6a1e597 Mon Sep 17 00:00:00 2001 From: Cameron Hummels Date: Fri, 26 Aug 2022 00:30:58 -0700 Subject: [PATCH 2/2] Update yt/visualization/base_plot_types.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Clément Robert --- yt/visualization/base_plot_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt/visualization/base_plot_types.py b/yt/visualization/base_plot_types.py index 3fc17846b20..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_axes=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)