We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 13ab5fc + eb20041 commit d95edc4Copy full SHA for d95edc4
1 file changed
doc/users/next_whats_new/colorbar_has_location_argument.rst
@@ -19,7 +19,7 @@ An example is:
19
import numpy as np
20
rng = np.random.default_rng(19680801)
21
imdata = rng.random((10, 10))
22
- fig, ax = plt.subplots()
+ fig, ax = plt.subplots(layout='constrained')
23
im = ax.imshow(imdata)
24
fig.colorbar(im, cax=ax.inset_axes([0, 1.05, 1, 0.05]),
25
location='top')
0 commit comments