Hi all,
I’m using matplotlib.image.NonUniformImage() to plot a 2D rectilinear grid (non uniform spacing between points):
im = matplotlib.image.NonUniformImage(grid, extent=extent, origin=‘lower’, cmap = matplotlib.cm.jet, interpolation = “nearest”)
im.set_data(x, y, z)
ax.images.append(im)
ax.set_xlim(extent_x)
ax.set_ylim(extent_z)
I have tried using a different interpolation value as in imshow(), but only “nearest” and “bilinear” gives expected results. All others (‘bicubic’, ‘spline16’, ‘spline36’, ‘hanning’, ‘hamming’, ‘hermite’, ‘kaiser’, ‘quadric’, ‘catrom’, ‘gaussian’, ‘bessel’, ‘mitchell’, ‘sinc’ and ‘lanczos’) show garbage instead of my data.
If the other interpolations are not implemented, there should be at least an assert somewhere…
Thanx