Robert Kern wrote:
> Eric Firing wrote:
>
>> I added nan definitions for
>>Numeric and numarray which work on my linux box, but I have not tested
>>them on other platforms; I guess in the worst case, if it doesn't work
>>on Mac or Windows I will have to change quiver.py to use masked arrays
>>internally instead of nans. (The definition I used is "nan =
>>float('nan')".)
>
>
> That will certainly not work on Windows.
>
Thanks for the quick info.
I think the following (now in svn) should be OK; it seems to work on
Windows, at least in the sense that it doesn't trigger an exception.
nan = struct.unpack('d', struct.pack('Q', 0x7ff8000000000000))[0]
Eric
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel