|
8 | 8 | # from the docs: |
9 | 9 |
|
10 | 10 | # 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 |
13 | 13 | # backends will fall back to 'nearest'. |
14 | 14 | # |
15 | 15 | # http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.imshow |
16 | 16 |
|
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'] |
20 | 20 |
|
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': []}) |
22 | 25 |
|
23 | | -fig, ax = plt.subplots(3,6,figsize=(12,6), subplot_kw={'xticks': [], 'yticks': []}) |
24 | 26 | fig.subplots_adjust(hspace=0.3, wspace=0.05) |
25 | 27 |
|
26 | 28 | ax = ax.ravel() |
|
0 commit comments