Skip to content

Commit

Permalink
Merge pull request #4261 from neutrinoceros/avoid_private_method_call…
Browse files Browse the repository at this point in the history
…_in_cookbook

DOC: cleanup calls to private methods _setup_plots in cookbook
  • Loading branch information
matthewturk authored Dec 28, 2022
2 parents 39014cb + 9e4e430 commit 8eaaf02
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/source/cookbook/multiplot_2x2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
2 changes: 1 addition & 1 deletion doc/source/cookbook/multiplot_2x2_coordaxes_slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
2 changes: 1 addition & 1 deletion doc/source/cookbook/multiplot_2x2_time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
4 changes: 2 additions & 2 deletions doc/source/cookbook/multiplot_phaseplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]))

Expand Down

0 comments on commit 8eaaf02

Please sign in to comment.