Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1a83a43

Browse filesBrowse 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
Copy full SHA for 1a83a43

File tree

Expand file treeCollapse file tree

5 files changed

+5
-57
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+5
-57
lines changed

‎galleries/examples/axes_grid1/demo_colorbar_of_inset_axes.py

Copy file name to clipboardExpand all lines: galleries/examples/axes_grid1/demo_colorbar_of_inset_axes.py
-33Lines changed: 0 additions & 33 deletions
This file was deleted.

‎galleries/examples/axes_grid1/demo_colorbar_with_axes_divider.py

Copy file name to clipboardExpand all lines: galleries/examples/axes_grid1/demo_colorbar_with_axes_divider.py
+2Lines changed: 2 additions & 0 deletions
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

Copy file name to clipboardExpand all lines: galleries/examples/axes_grid1/demo_colorbar_with_inset_locator.py
+1Lines changed: 1 addition & 0 deletions
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

Copy file name to clipboardExpand all lines: galleries/examples/axes_grid1/simple_colorbar.py
-22Lines changed: 0 additions & 22 deletions
This file was deleted.

‎galleries/users_explain/toolkits/axes_grid.rst

Copy file name to clipboardExpand all lines: galleries/users_explain/toolkits/axes_grid.rst
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.