From 31e3b71a9a742729a5bfc3d53122050f668b3f04 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Mon, 7 May 2018 22:59:47 +0200 Subject: [PATCH] Fix image size in interpolation example --- examples/images_contours_and_fields/interpolation_methods.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/images_contours_and_fields/interpolation_methods.py b/examples/images_contours_and_fields/interpolation_methods.py index 2108b79dbdba..9318376f2837 100644 --- a/examples/images_contours_and_fields/interpolation_methods.py +++ b/examples/images_contours_and_fields/interpolation_methods.py @@ -27,7 +27,7 @@ grid = np.random.rand(4, 4) -fig, axs = plt.subplots(nrows=3, ncols=6, figsize=(12, 6), +fig, axs = plt.subplots(nrows=3, ncols=6, figsize=(9, 4.5), subplot_kw={'xticks': [], 'yticks': []}) fig.subplots_adjust(hspace=0.3, wspace=0.05) @@ -36,4 +36,5 @@ ax.imshow(grid, interpolation=interp_method, cmap='viridis') ax.set_title(str(interp_method)) +plt.tight_layout() plt.show()