On Wednesday 18 July 2007 07:11:04 Darren Dale wrote:
> Here is another way, with numpy arrays:
>
> data[data==0]=nan

My 2c:
That won't work if data is int_, as nan will be treated as 0.
I'm fairly partial to masked arrays...

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to