Skip to content

Commit 962ed31

Browse files
committed
Update interpolation_methods.py
1 parent 40cd8c2 commit 962ed31

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

examples/images_contours_and_fields/interpolation_methods.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,21 @@
88
# from the docs:
99

1010
# If interpolation is None, default to rc image.interpolation. See also
11-
# the filternorm and filterrad parameters. If interpolation is 'none', then
12-
# no interpolation is performed on the Agg, ps and pdf backends. Other
11+
# the filternorm and filterrad parameters. If interpolation is 'none', then
12+
# no interpolation is performed on the Agg, ps and pdf backends. Other
1313
# backends will fall back to 'nearest'.
1414
#
1515
# http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.imshow
1616

17-
methods = [None, 'none', 'nearest', 'bilinear', 'bicubic', 'spline16',
18-
'spline36', 'hanning', 'hamming', 'hermite', 'kaiser', 'quadric',
19-
'catrom', 'gaussian', 'bessel', 'mitchell', 'sinc', 'lanczos']
17+
methods = [None, 'none', 'nearest', 'bilinear', 'bicubic', 'spline16',
18+
'spline36', 'hanning', 'hamming', 'hermite', 'kaiser', 'quadric',
19+
'catrom', 'gaussian', 'bessel', 'mitchell', 'sinc', 'lanczos']
2020

21-
grid = np.random.rand(4,4)
21+
grid = np.random.rand(4, 4)
22+
23+
fig, ax = plt.subplots(3, 6, figsize=(12, 6),
24+
subplot_kw={'xticks': [], 'yticks': []})
2225

23-
fig, ax = plt.subplots(3,6,figsize=(12,6), subplot_kw={'xticks': [], 'yticks': []})
2426
fig.subplots_adjust(hspace=0.3, wspace=0.05)
2527

2628
ax = ax.ravel()

0 commit comments

Comments
 (0)