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 d95edc4

Browse filesBrowse files
authored
Merge pull request #24440 from stefmolin/colorbar-location-cutoff
DOC: Fix colorbar what's new entry so it isn't cut off.
2 parents 13ab5fc + eb20041 commit d95edc4
Copy full SHA for d95edc4

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-1
lines changed

‎doc/users/next_whats_new/colorbar_has_location_argument.rst

Copy file name to clipboardExpand all lines: doc/users/next_whats_new/colorbar_has_location_argument.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ An example is:
1919
import numpy as np
2020
rng = np.random.default_rng(19680801)
2121
imdata = rng.random((10, 10))
22-
fig, ax = plt.subplots()
22+
fig, ax = plt.subplots(layout='constrained')
2323
im = ax.imshow(imdata)
2424
fig.colorbar(im, cax=ax.inset_axes([0, 1.05, 1, 0.05]),
2525
location='top')

0 commit comments

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