[Matplotlib-users] NaN bugs

2008-07-25 Thread Ben Axelrod
I have noticed 2 bugs having to do with NaN handling in the scatter() function. And one other bug that seems to be in numpy. 1. The min and max for the axes are not computed properly when there are NaNs in the data. Example: import pylab as pl import numpy as np x = np.asarray([0, 1, 2, 3,

[Matplotlib-users] Help with converting from scilab

2008-07-25 Thread Peter Wesbdell
Hello all, my first post here. I am moving from using scilab to Pylab, can anyone tell me why the two following snippets of code produce very different results? BTW. The scilab code produces the expected result. Scilab: Lx=1; Ly=1; n=2; m=2; f=100; w=2*%pi*f; t=1; A=2; Kx=n*%pi/Lx;

Re: [Matplotlib-users] NaN bugs

2008-07-25 Thread John Hunter
On Fri, Jul 25, 2008 at 10:08 AM, Ben Axelrod [EMAIL PROTECTED] wrote: I have noticed 2 bugs having to do with NaN handling in the scatter() I believe this is fixed in svn (0.98 branch) -- I tested your first example and it behaved as expected. I f you have a build environment, please test the

Re: [Matplotlib-users] Help with converting from scilab

2008-07-25 Thread John Hunter
On Fri, Jul 25, 2008 at 10:22 AM, Peter Wesbdell [EMAIL PROTECTED] wrote: Hello all, my first post here. I am moving from using scilab to Pylab, can anyone tell me why the two following snippets of code produce very different results? BTW. The scilab code produces the expected result. I

[Matplotlib-users] Surf, mesh, and friends

2008-07-25 Thread David Arnold
All, I am aware of the 3d examples at: http://scipy.org/Cookbook/ Matplotlib/mplot3D However, this seems out of date, some examples work, some don't. Are there other pointers that show how I can use matplotlib to draw three dimensional surfaces similar to the ones drawn in Matlab with mesh,

Re: [Matplotlib-users] NaN bugs

2008-07-25 Thread Ryan May
Ben Axelrod wrote: 3. Both of the above mentioned bandaid fixes suffer from some bug (I think in numpy). Where the min() and max() of a numpy array where the first value is NaN, bugs out: x = np.asarray([None, 1, 2, 3, 4, 5, 6, 7, 8, 9], float) y = np.asarray([0, 1, 2, 3, 4, 5,

Re: [Matplotlib-users] Surf, mesh, and friends

2008-07-25 Thread Ryan May
David Arnold wrote: All, I am aware of the 3d examples at: http://scipy.org/Cookbook/ Matplotlib/mplot3D However, this seems out of date, some examples work, some don't. Are there other pointers that show how I can use matplotlib to draw three dimensional surfaces similar to the