Skip to content

Commit d95edc4

Browse files
authored
Merge pull request matplotlib#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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/users/next_whats_new/colorbar_has_location_argument.rst

Lines 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)