From 9e4e43047ff76d011d93a3e565d0ab0517675db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Fri, 23 Dec 2022 20:26:08 +0100 Subject: [PATCH] DOC: cleanup calls to private methods _setup_plots in cookbook --- doc/source/cookbook/multiplot_2x2.py | 2 +- doc/source/cookbook/multiplot_2x2_coordaxes_slice.py | 2 +- doc/source/cookbook/multiplot_2x2_time_series.py | 2 +- doc/source/cookbook/multiplot_phaseplot.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/source/cookbook/multiplot_2x2.py b/doc/source/cookbook/multiplot_2x2.py index 7580dc3918c..0bda1081894 100644 --- a/doc/source/cookbook/multiplot_2x2.py +++ b/doc/source/cookbook/multiplot_2x2.py @@ -53,6 +53,6 @@ plot.cax = grid.cbar_axes[i] # Finally, redraw the plot on the AxesGrid axes. -p._setup_plots() +p.render() plt.savefig("multiplot_2x2.png") diff --git a/doc/source/cookbook/multiplot_2x2_coordaxes_slice.py b/doc/source/cookbook/multiplot_2x2_coordaxes_slice.py index f13547d2f71..3998c6d0f3d 100644 --- a/doc/source/cookbook/multiplot_2x2_coordaxes_slice.py +++ b/doc/source/cookbook/multiplot_2x2_coordaxes_slice.py @@ -55,6 +55,6 @@ plot.cax = grid.cbar_axes[1] # Finally, redraw the plot. - p._setup_plots() + p.render() plt.savefig("multiplot_2x2_coordaxes_slice.png") diff --git a/doc/source/cookbook/multiplot_2x2_time_series.py b/doc/source/cookbook/multiplot_2x2_time_series.py index 7be73311f4e..bdbc7baa62a 100644 --- a/doc/source/cookbook/multiplot_2x2_time_series.py +++ b/doc/source/cookbook/multiplot_2x2_time_series.py @@ -45,6 +45,6 @@ plot.cax = grid.cbar_axes[i] # Finally, this actually redraws the plot. - p._setup_plots() + p.render() plt.savefig("multiplot_2x2_time_series.png") diff --git a/doc/source/cookbook/multiplot_phaseplot.py b/doc/source/cookbook/multiplot_phaseplot.py index 28f074d35d8..db6d244e6c5 100644 --- a/doc/source/cookbook/multiplot_phaseplot.py +++ b/doc/source/cookbook/multiplot_phaseplot.py @@ -47,9 +47,9 @@ plot.cax = grid.cbar_axes[i] # Actually redraws the plot. - p._setup_plots() + p.render() - # Modify the axes properties **after** p._setup_plots() so that they + # Modify the axes properties **after** p.render() so that they # are not overwritten. plot.axes.xaxis.set_minor_locator(plt.LogLocator(base=10.0, subs=[2.0, 5.0, 8.0]))