Skip to content

Commit 1a83a43

Browse files
committed
Remove redundant axes_grid colorbar examples.
simple_colorbar is basically a shorter version of demo_colorbar_with_axes_divider with no text explanation (and a really confusing title -- we don't actually want most users to even look at that example), so just delete it (with a redirection). demo_colorbar_with_inset_axes is a version of demo_colorbar_with_inset_locator, but specialized for adding a colorbar to an inset axes. That's a rather specialized case and anyways it works "as is" without doing anything special -- it's just saying that you can combine two relatively orthogonal features and they are happy together. So just delete it (with a redirection).
1 parent f05167c commit 1a83a43

File tree

5 files changed

+5
-57
lines changed

5 files changed

+5
-57
lines changed

galleries/examples/axes_grid1/demo_colorbar_of_inset_axes.py

-33
This file was deleted.

galleries/examples/axes_grid1/demo_colorbar_with_axes_divider.py

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
Users should consider simply passing the main axes to the *ax* keyword argument of
1515
`~.Figure.colorbar` instead of creating a locatable axes manually like this.
1616
See :ref:`colorbar_placement`.
17+
18+
.. redirect-from:: /gallery/axes_grid1/simple_colorbar
1719
"""
1820

1921
import matplotlib.pyplot as plt

galleries/examples/axes_grid1/demo_colorbar_with_inset_locator.py

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
Users should consider using `.Axes.inset_axes` instead (see
1717
:ref:`colorbar_placement`).
1818
19+
.. redirect-from:: /gallery/axes_grid1/demo_colorbar_of_inset_axes
1920
"""
2021

2122
import matplotlib.pyplot as plt

galleries/examples/axes_grid1/simple_colorbar.py

-22
This file was deleted.

galleries/users_explain/toolkits/axes_grid.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ side ("left", "right", "top", "bottom") of the original axes.
8181
colorbar whose height (or width) is in sync with the main axes
8282
--------------------------------------------------------------
8383

84-
.. figure:: /gallery/axes_grid1/images/sphx_glr_simple_colorbar_001.png
85-
:target: /gallery/axes_grid1/simple_colorbar.html
84+
.. figure:: /gallery/axes_grid1/images/sphx_glr_demo_colorbar_with_axes_divider_001.png
85+
:target: /gallery/axes_grid1/demo_colorbar_with_axes_divider.html
8686
:align: center
8787

8888
scatter_hist.py with AxesDivider

0 commit comments

Comments
 (0)