8000 Remove trailing whitespace + adding new layout as constrained · matplotlib/matplotlib@31cf67d · GitHub
[go: up one dir, main page]

Skip to content

Commit 31cf67d

Browse files
committed
Remove trailing whitespace + adding new layout as constrained
1 parent fdb37d4 commit 31cf67d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

galleries/examples/color/colorbar_histogram.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
norm = mcolors.BoundaryNorm(bins, cmap.N)
3030

3131
# === Main Plot ===
32-
fig, ax = plt.subplots()
32+
fig, ax = plt.subplots(layout="constrained")
3333
im = ax.imshow(Z, cmap=cmap,
3434
origin='lower', extent=[-3, 3, -3, 3],
3535
norm=norm)
@@ -51,7 +51,7 @@
5151

5252
# === Axis labels ===
5353
cax.set_xlabel('Count', labelpad=10)
54-
cax.set_ylabel('Value', labelpad=6)
54+
cax.set_ylabel('Value', labelpad=6)
5555

5656
# === Ticks ===
5757
cax.set_yticks(bins)

0 commit comments

Comments
 (0)
0