Re: [Matplotlib-users] Some remarks/questions about perceived slowness of matplotlib

2006-12-17 Thread David Cournapeau
Eric Firing wrote: > > There is a clip function in all three numeric packages, so a native > clip is being used. > > If numpy.clip is actually slower than your version, that sounds like a > problem with the implementation in numpy. By all logic a single clip > function should either be the same

Re: [Matplotlib-users] Some remarks/questions about perceived slowness of matplotlib

2006-12-17 Thread Eric Firing
David Cournapeau wrote: [...] > Ok, I've installed last svn, and now, there is still one function which > is much slower than a direct numpy implementation, so I would like to > know if this is inherent to the multiple backend nature of matplotlib or > not. The functor Normalize uses the clip fu

Re: [Matplotlib-users] Some remarks/questions about perceived slowness of matplotlib

2006-12-17 Thread David Cournapeau
Eric Firing wrote: > David, > > I have made some changes in svn that address all but one of the points > you made: > > [] >> if self.clip: >>mask = ma.getmaskorNone(val) >>if mask == None: >>val = ma.array(clip(val.filled(vmax), vmin, vmax))

[Matplotlib-users] wx and wxAgg backend figure size problem

2006-12-17 Thread Pujo Aji
Hello, I manage to use WXAgg backend by replacing 'TkAgg' with 'WXAgg' inside matplotlibrc file. I found that using this wx backend the figure size is smaller than using TkAgg backend (the default size). I try to make small experiment by resizing the figure.figsize inside matplotlibrc file and f

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] Usability with matplotlib

2006-12-17 Thread Eric Firing
John Hunter wrote: [...] > Simson> To answer Eric's most recent posting: > > Simson> 1. I think that scientific notation should not be the > Simson> default, unless numbers exceed 1E+7. > > I agree with this -- scientific notation kicks in too soon IMO. I > think an rc setting woul

Re: [Matplotlib-users] Usability with matplotlib

2006-12-17 Thread Simson L. Garfinkel's Treo 700p
>On the bright side, at least w/matplotlib, you're not paying out the >wazoo :-) for such things. > I actually made the mistake of buying the matlab student edition. - Take Surveys. Earn Cash. Influence the Future of IT Jo

Re: [Matplotlib-users] Usability with matplotlib

2006-12-17 Thread belinda thom
On Dec 16, 2006, at 8:10 PM, John Hunter wrote: > Simson> 3. If I was going to make a major change to the API at > Simson> this point, it would be to make it so that you don't have > Simson> a class/function/ identifier called "axes" and another one > Simson> called "axis." I freq

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