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