pbfy0 / visvis

Automatically exported from code.google.com/p/visvis
Other
0 stars 0 forks source link

Line.Set*data does not accept a list, neither a np.array of integers #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
import visvis as vv
import numpy as np
L = vv.plot([1,3,2,4]) # Implies that giving a list of integers should work
L.SetYdata(np.array([4.0,3,1,2])) # Works (np.array of floats)

L.SetYdata([4.0,3,1,2]) # Raises exception (list; not a np.array);
L.SetYdata(np.array([4,3,1,2])) # Raises exception (np.array of ints, cannot 
contain np.inf)

The problem lies in handleInvalidValues(), which is picky on its inputs.

Original issue reported on code.google.com by gijsvano...@gmail.com on 3 Jan 2013 at 2:25

GoogleCodeExporter commented 9 years ago
This is related to the recents changes to the Line class. Strange that we 
overlooked this ...

Original comment by almar.klein@gmail.com on 3 Jan 2013 at 3:34

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 5ffa11a3ff2d.

Original comment by almar.klein@gmail.com on 3 Jan 2013 at 3:35