Skip to content

Commit aba7a7f

Browse files
committed
Small example tweaking to avoid label cluttering
1 parent 7f1422c commit aba7a7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/api/engineering_formatter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
ys = (0.8 + 0.4 * prng.uniform(size=100)) * np.log10(xs)**2
2121

2222
# Figure width is doubled (2*6.4) to display nicely 2 subplots side by side.
23-
fig, (ax0, ax1) = plt.subplots(ncols=2, figsize=(12.8, 4.8))
23+
fig, (ax0, ax1) = plt.subplots(nrows=2, figsize=(7, 9.6))
2424
for ax in (ax0, ax1):
2525
ax.set_xscale('log')
2626

@@ -40,4 +40,5 @@
4040
ax1.plot(xs, ys)
4141
ax1.set_xlabel('Frequency [Hz]')
4242

43+
plt.tight_layout()
4344
plt.show()

0 commit comments

Comments
 (0)