Skip to content

Commit

Permalink
plotting: fix vispy visuals
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed May 2, 2023
1 parent d7791fd commit 09c2e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion navis/plotting/vispy/visuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def skeleton2vispy(neuron, neuron_color, object_id, **kwargs):
n = neuron.nodes.set_index('node_id').loc[s]
r = getattr(n, neuron.soma_radius) if isinstance(neuron.soma_radius, str) else neuron.soma_radius
sp = create_sphere(7, 7, radius=r)
verts = sp.get_vertices() + n[['x', 'y', 'z']].values
verts = sp.get_vertices() + n[['x', 'y', 'z']].values.astype(np.float32)
s = scene.visuals.Mesh(vertices=verts,
shading='smooth',
faces=sp.get_faces(),
Expand Down

0 comments on commit 09c2e03

Please sign in to comment.