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 7828fdf

Browse filesBrowse files
authored
Merge pull request #11188 from timhoffm/interpolation-methods
Fix image size in interpolation example
2 parents d0c2f66 + 31e3b71 commit 7828fdf
Copy full SHA for 7828fdf

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/images_contours_and_fields/interpolation_methods.py

Copy file name to clipboardExpand all lines: examples/images_contours_and_fields/interpolation_methods.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
grid = np.random.rand(4, 4)
2929

30-
fig, axs = plt.subplots(nrows=3, ncols=6, figsize=(12, 6),
30+
fig, axs = plt.subplots(nrows=3, ncols=6, figsize=(9, 4.5),
3131
subplot_kw={'xticks': [], 'yticks': []})
3232

3333
fig.subplots_adjust(hspace=0.3, wspace=0.05)
@@ -36,4 +36,5 @@
3636
ax.imshow(grid, interpolation=interp_method, cmap='viridis')
3737
ax.set_title(str(interp_method))
3838

39+
plt.tight_layout()
3940
plt.show()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.