Re: [Matplotlib-users] how can i make a contour plot with mask

2006-12-17 Thread Jeff Whitaker
[EMAIL PROTECTED] wrote: >> Shu: I'd make a mask by finding the points on the grid that are outside >> your polygon. Then use that mask to create a masked array from your >> data (masking the points you don't want to plot). matplotlib's contourf >> knows how to deal with masked arrays (at lea

Re: [Matplotlib-users] how can i make a contour plot with mask

2006-12-17 Thread [EMAIL PROTECTED]
> Shu: I'd make a mask by finding the points on the grid that are outside > your polygon. Then use that mask to create a masked array from your > data (masking the points you don't want to plot). matplotlib's contourf > knows how to deal with masked arrays (at least when the masked region >

Re: [Matplotlib-users] how can i make a contour plot with mask

2006-12-17 Thread [EMAIL PROTECTED]
> How is the irregular boundary defined? Is it defined in terms of the > data you are plotting (i.e. all values exceeding a threshold)? Or, do > you have the vertices of a polygon you want to use as a mask? > > -Jeff Jeff, thanks for answering my question. I have the vertices of a polygon

Re: [Matplotlib-users] how can i make a contour plot with mask

2006-12-17 Thread Jeff Whitaker
[EMAIL PROTECTED] wrote: > hi,everybody.first say sorry for my poor english. > I want to make a contour plot with part out of the irregular boundary > blank.just as http://www.pyngl.ucar.edu/Examples/Images/ngl05p.3.png > shows. > how can i do? > > How is the irregular boundary defined? Is it d

[Matplotlib-users] how can i make a contour plot with mask

2006-12-17 Thread [EMAIL PROTECTED]
hi,everybody.first say sorry for my poor english.This is my first email to matplotlib user list. I want to make a contour plot with part out of the irregular boundary blank.just as http://www.pyngl.ucar.edu/Examples/Images/ngl05p.3.png shows. how can i do? -- <> --

[Matplotlib-users] how can i make a contour plot with mask

2006-12-17 Thread [EMAIL PROTECTED]
hi,everybody.first say sorry for my poor english. I want to make a contour plot with part out of the irregular boundary blank.just as http://www.pyngl.ucar.edu/Examples/Images/ngl05p.3.png shows. how can i do? -- <> - Tak