Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4eb3ede

Browse files
committed
Apply tight_layout() so colorbar isn't cut off.
1 parent 13ab5fc commit 4eb3ede

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/users/next_whats_new/colorbar_has_location_argument.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ An example is:
2323
im = ax.imshow(imdata)
2424
fig.colorbar(im, cax=ax.inset_axes([0, 1.05, 1, 0.05]),
2525
location='top')
26+
fig.tight_layout()

0 commit comments

Comments
 (0)