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

Skip to content

Commit 68bcaba

Browse files
committed
Fix manual backport 68e7965
1 parent 68e7965 commit 68bcaba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/images_contours_and_fields/interpolation_methods.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727

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

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

3333
fig.subplots_adjust(hspace=0.3, wspace=0.05)
3434

3535
for ax, interp_method in zip(axes.flat, methods):
3636
ax.imshow(grid, interpolation=interp_method, cmap='viridis')
37-
ax.set_title(interp_method)
37+
ax.set_title(str(interp_method))
3838

3939
plt.tight_layout()
4040
plt.show()

0 commit comments

Comments
 (0)