2008/6/12 Manuel Metz <[EMAIL PROTECTED]>:
> When looking, e.g. at axes.py, I see 3 different arguments passed to
> numpy astype()/array()/zero() and friends:
>
>   x = np.asarray(x).astype(np.float32)
>   x = np.zeros( x, np.float_ )
>   x = np.ones((col,), float)
>
> Is there a preferred one to stick to ?!

Both `np.float_` and the Python `float` are interpreted as
`np.float64`.  The only time you really need something other than
`float` is if you require a width other than 64 (like in the first
line you showed).

Regards
Stéfan

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to