Is it possible to create an accurate, filled contour plot with data which does not vary smoothly?
Im trying to create a contour plot of trend data. I would like to add some shading in a single colour to indicate where the trends are significant, i.e. I have a 2-d array filled with 1s and 0s, and call contour with this array and the /cell_fill or /fill keywords. If I use levels=[1], I get a plot composed of large rectangular patches, even though the data is rather finely gridded, and the significance is not distributed in large rectangular areas. If i change the levels to levels=[0.1,1.], the plot looks completely different (much larger shaded areas), despite the fact that there are only ones and zeros in the array I'm plotting. Anyone got an idea of how to fix this?
|