Hi Kacper,

Just to be clear, is it tri.Triangulation(x, y) that hangs, or is it 
plt.tricontour(…)?  

--
Damon McDougall
d.mcdoug...@warwick.ac.uk (mailto:d.mcdoug...@warwick.ac.uk)
http://damon.is-a-geek.com
B2.39
Mathematics Institute
University of Warwick
Coventry
West Midlands
CV4 7AL
United Kingdom



On Monday, 16 April 2012 at 14:28, Kacper Kowalik wrote:

> Hi,
> I haven't been able to pin point it exactly but following script:
>  
> import matplotlib.pyplot as plt
> import matplotlib.tri as tri
> import numpy as np
> from numpy.random import uniform, seed
>  
> seed(0)
> npts = 200
> x = uniform(-2,2,npts)
> y = uniform(-2,2,npts)
> z = x*np.exp(-x**2-y**2)
>  
> y[1:3] = x[0] # 4 or more duplicate points make tricontour hang!!!
> x[1:3] = y[0]
> triang = tri.Triangulation(x, y)
> plt.tricontour(x, y, z, 15, linewidths=0.5, colors='k')
>  
> plt.show()
>  
>  
> causes infinite loop in _tri.so. It happens in matplotlib-1.1.0 as well
> as git HEAD.
> I understand that my input is not exactly valid, but I'd rather see MPL
> die than occupy my box for eternity ;)
> Best regards,
> Kacper
>  
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
>  
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net 
> (mailto:Matplotlib-users@lists.sourceforge.net)
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>  
>  


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to