Skip to content

Commit

Permalink
Fix graph plotting for unsigned node dtypes (#3773)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarteberg authored and philippjfr committed Jun 21, 2019
1 parent 6513617 commit 0707659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/plotting/bokeh/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def get_data(self, element, ranges, style):
start, end = (element.dimension_values(i) for i in range(2))
if nodes.dtype.kind == 'f':
start, end = start.astype(np.int32), end.astype(np.int32)
elif nodes.dtype.kind != 'i':
elif nodes.dtype.kind not in 'ui':
start = np.array([node_indices.get(x, nan_node) for x in start], dtype=np.int32)
end = np.array([node_indices.get(y, nan_node) for y in end], dtype=np.int32)
path_data = dict(start=start, end=end)
Expand Down

0 comments on commit 0707659

Please sign in to comment.