Skip to content

Commit

Permalink
EXA some small fixes to plot_geodesic_path
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdoc committed Jul 20, 2023
1 parent 42c9542 commit f3d9a0d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/surface_analyses/plot_geodesic_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
surfs = [cortex.polyutils.Surface(*d)
for d in cortex.db.get_surf(subject, "fiducial")]
numl = surfs[0].pts.shape[0]
numr = surfs[0].pts.shape[0]
numr = surfs[1].pts.shape[0]
num_vertices = numl + numr

# Now we need to pick the start and end points of the line we will draw
Expand All @@ -42,6 +42,5 @@

# And now plot these distances onto the cortical surface
path_verts = cortex.Vertex(path_data, subject, cmap="Reds", vmin=0, vmax=1)
# Specify depth = 0.5 and thick = 1 to not average across the depth of the cortex (which would obscure the single-vertex path we've drawn)
cortex.quickshow(path_verts, with_colorbar=False, with_curvature=True, depth=0.5, thick=1)
cortex.quickshow(path_verts, with_colorbar=False, with_curvature=True)
plt.show()

0 comments on commit f3d9a0d

Please sign in to comment.