|
20 | 20 | fig = figure()
|
21 | 21 | fig.suptitle('NonUniformImage class')
|
22 | 22 | ax = fig.add_subplot(221)
|
23 |
| -im = NonUniformImage(ax, interpolation=interp, extent=(-4,4,-4,4), cmap=cm.Purples) |
| 23 | +im = NonUniformImage(ax, interpolation=interp, extent=(-4,4,-4,4), |
| 24 | + cmap=cm.Purples) |
24 | 25 | im.set_data(x, y, z)
|
25 | 26 | ax.images.append(im)
|
26 | 27 | ax.set_xlim(-4,4)
|
27 | 28 | ax.set_ylim(-4,4)
|
28 | 29 | ax.set_title(interp)
|
29 | 30 |
|
30 | 31 | ax = fig.add_subplot(222)
|
31 |
| -im = NonUniformImage(ax, interpolation=interp, extent=(-64,64,-4,4), cmap=cm.Purples) |
| 32 | +im = NonUniformImage(ax, interpolation=interp, extent=(-64,64,-4,4), |
| 33 | + cmap=cm.Purples) |
32 | 34 | im.set_data(x2, y, z)
|
33 | 35 | ax.images.append(im)
|
34 | 36 | ax.set_xlim(-64,64)
|
|
38 | 40 | interp = 'bilinear'
|
39 | 41 |
|
40 | 42 | ax = fig.add_subplot(223)
|
41 |
| -im = NonUniformImage(ax, interpolation=interp, extent=(-4,4,-4,4), cmap=cm.Purples) |
| 43 | +im = NonUniformImage(ax, interpolation=interp, extent=(-4,4,-4,4), |
| 44 | + cmap=cm.Purples) |
42 | 45 | im.set_data(x, y, z)
|
43 | 46 | ax.images.append(im)
|
44 | 47 | ax.set_xlim(-4,4)
|
45 | 48 | ax.set_ylim(-4,4)
|
46 | 49 | ax.set_title(interp)
|
47 | 50 |
|
48 | 51 | ax = fig.add_subplot(224)
|
49 |
| -im = NonUniformImage(ax, interpolation=interp, extent=(-64,64,-4,4), cmap=cm.Purples) |
| 52 | +im = NonUniformImage(ax, interpolation=interp, extent=(-64,64,-4,4), |
| 53 | + cmap=cm.Purples) |
50 | 54 | im.set_data(x2, y, z)
|
51 | 55 | ax.images.append(im)
|
52 | 56 | ax.set_xlim(-64,64)
|
|
0 commit comments