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 ab2d123

Browse filesBrowse files
committed
Tweak demo_edge_colorbar.
- The labels already default to being on; no need to call toggle_label(True). - Tweak the figure size (to the default size) so that the "Bar" label isn't hidden by default.
1 parent efd66d4 commit ab2d123
Copy full SHA for ab2d123

File tree

Expand file treeCollapse file tree

1 file changed

+1
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-4
lines changed

‎galleries/examples/axes_grid1/demo_edge_colorbar.py

Copy file name to clipboardExpand all lines: galleries/examples/axes_grid1/demo_edge_colorbar.py
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def demo_bottom_cbar(fig):
4242
grid.cbar_axes[i//2].colorbar(im)
4343

4444
for cax in grid.cbar_axes:
45-
cax.toggle_label(True)
4645
cax.axis[cax.orientation].set_label("Bar")
4746

4847
# This affects all axes as share_all = True.
@@ -72,16 +71,14 @@ def demo_right_cbar(fig):
7271
grid.cbar_axes[i//2].colorbar(im)
7372

7473
for cax in grid.cbar_axes:
75-
cax.toggle_label(True)
7674
cax.axis[cax.orientation].set_label('Foo')
7775

7876
# This affects all axes because we set share_all = True.
7977
grid.axes_llc.set_xticks([-2, 0, 2])
8078
grid.axes_llc.set_yticks([-2, 0, 2])
8179

8280

83-
fig = plt.figure(figsize=(5.5, 2.5))
84-
fig.subplots_adjust(left=0.05, right=0.93)
81+
fig = plt.figure()
8582

8683
demo_bottom_cbar(fig)
8784
demo_right_cbar(fig)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.