Christopher Barker wrote:
> Christopher Barker wrote:
>> Hi all,
>>
>> I've been messing with quiver a bit, and have some confusions:
>
> one more issue with quiver -- autoscaling fails if there is a NaN in the
> data:
>
I just committed a change to ensure that nans and infs are treated as
masked points.
If you still see the problem (and I suspect you will), then it is
inherent in the autoscaling.
Eric
>
>
> x = (1,2)
> y = (1,2)
> u = (2,2)
> v = (-2,2)
>
>
> fig = plt.figure(1)
> fig.clear()
>
> ax = fig.add_subplot(2,2,3)
>
> # fails for a nan data point if auto-scaling
> u = (2, np.nan)
> props = {'units' : "dots",
> 'scale' : .1,
> 'width' : 2,
> 'headwidth': 2,
> 'headlength': 3,
> 'headaxislength': 4,
> }
>
> ax.quiver( x, y, u, v, **props )
>
>
>
>
> -Chris
>
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users