Re: [Matplotlib-users] How to plot other than rectangular grid?

2014-11-21 Thread Maria Liukis
Thank you for the note, but it is definitely many more extra cells than just one around the border. Especially bounding area on the east side of the state is affected the most. Thanks, Masha On Nov 21, 2014, at 11:31 AM, Benjamin Root mailto:ben.r...@ou.edu>> wrote: How many cells past the

Re: [Matplotlib-users] How to plot other than rectangular grid?

2014-11-21 Thread Benjamin Root
How many cells past the state boundary are you seeing? If it is never more than one cell past the boundary, it might be an offset issue. On Fri, Nov 21, 2014 at 1:30 PM, Maria Liukis wrote: > Eric, > > Yes, my data is exactly how you understood it. I thought, as you are > suggesting, to create a

Re: [Matplotlib-users] How to plot other than rectangular grid?

2014-11-21 Thread Maria Liukis
Eric, Yes, my data is exactly how you understood it. I thought, as you are suggesting, to create a masked array for rectangle that bounds state of CA, to be used with pcolormesh(). The only existing functionality that I could find is griddata(), but it also interpolates data to extra cells outs

Re: [Matplotlib-users] How to plot other than rectangular grid?

2014-11-21 Thread Maria Liukis
Thank you for the suggestion, unfortunately “nearest” method for interpolation still does interpolation to some extra cells outside of my CA grid which fall within the convex hull. I thought I check if there is existing functionality for that within matplotlib, but it seems that I have to manual

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 102, Issue 39

2014-11-21 Thread Joe Kington
> > On Fri, Nov 21, 2014 at 10:42 AM, Pedro Marcal > wrote: > @MariaLukis, I had to go through contortions to plot an arbitrary > quadrilateral mesh, in 3D. I resolved it by storing every line plotted and > retracing the best set to take me to the starting point of the quad I was > plotting. It wo

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 102, Issue 39

2014-11-21 Thread Pedro Marcal
@MariaLukis, I had to go through contortions to plot an arbitrary quadrilateral mesh, in 3D. I resolved it by storing every line plotted and retracing the best set to take me to the starting point of the quad I was plotting. It would have been much easier if I had the function of lifting my pen and

Re: [Matplotlib-users] How to plot other than rectangular grid?

2014-11-21 Thread Eric Firing
On 2014/11/20, 7:11 PM, Maria Liukis wrote: > Hello, > > I have a problem plotting data which is defined on a grid other than > rectangular mesh, and would greatly appreciate any advise. My data is > defined for 0.1degree grid for the state of California, and I don’t > want to interpolate my data o

Re: [Matplotlib-users] How to plot other than rectangular grid?

2014-11-21 Thread Oliver
As Thomas Caswell said, check out the "tri..." functions. No need for interpolation. This question recently reappeared on Stackoverflow and was answered there as well: https://stackoverflow.com/questions/27004422/contour-imshow-plot-for-irregular-x-y-z-data 2014-11-21 9:15 GMT+01:00 Shahar Shani K

Re: [Matplotlib-users] How to plot other than rectangular grid?

2014-11-21 Thread Shahar Shani Kadmiel
When using scipy.interpolate.griddada, you could use 'nearest' if your data is sufficiently dense. This will 'map' your grid onto whatever rectangular grid leaving grid points outside the convex hull of the original grid empty. Well, not empty but nan. If you do wish to interpolate your dada, yo