Skip to content

Commit

Permalink
Accept lists in Path
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt authored Jan 11, 2017
1 parent 642a604 commit 6eefe9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/element/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Path(Element2D):

def __init__(self, data, **params):
if isinstance(data, tuple):
x, y = data
x, y = map(np.asarray, [*data])
if y.ndim == 1:
y = np.atleast_2d(y).T
if len(x) != y.shape[0]:
Expand Down

0 comments on commit 6eefe9e

Please sign in to comment.