Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aba7a7f

Browse filesBrowse files
committed
Small example tweaking to avoid label cluttering
1 parent 7f1422c commit aba7a7f
Copy full SHA for aba7a7f

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎examples/api/engineering_formatter.py

Copy file name to clipboardExpand all lines: examples/api/engineering_formatter.py
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.