|
From: Jody K. <jk...@uv...> - 2014-03-07 21:05:30
|
Hi all, I have some pcolormesh data that is in a thin strip along a slope at a (say) 45 degree angle. Is there a way to set up a view of data just within dz of the slope, following the slope? I would then stack successive views of this data. I tentatively tried something like: pcm=pcolormesh(x,z,Ep,rasterized=True,cmap=jet,vmin=-13,vmax=-5) rect = Rectangle((1,-8),10,4, facecolor="none", edgecolor="k",angle=-45) gca().add_artist(rect) pcm.set_clip_path(rect) But that doesn't clip properly. Note, I don't really want to rotate the data (that would be easy enough). I'd still prefer there was the sense of a slope relative to the horizontal. Thanks for any thoughts... Cheers, Jody |