Skip to content

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

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions