-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
@ElectronicTeaCup brought up topoplots at sam81/BrainWave.jl#1.
I'll borrow an example from the Makie docs to give a more concrete place to start. This example provides gradients and contours (see the plot here).
using AbstractPlotting
x = LinRange(-1, 1, 20)
y = LinRange(-1, 1, 20)
z = x .* y'
vbox(
contour(x, y, z, levels = 50, linewidth =3),
contour(x, y, z, levels = 0, linewidth = 0, fillrange = true)
)If we instead do something like the following we can get a more classic topological for neurophysiology (I think there needs to be some adjustments to the second plot's attributes make the contour lines more visible).
scene = Scene()
contour!(scene, x, y, z, levels = 0, linewidth = 0, fillrange = true)
contour!(scene, x, y, z, levels = 50, linewidth =3),It might be good to look at how GeoMakie accomplishes the different projection.
Edit: One last thought. I'm using CoordinateTransformations.jl in NeuroCore because it's fast, is used in other packages that do spatial registration in Julia, and I think it may get incorporated into the plots ecosystem.
AsimHDar
Metadata
Metadata
Assignees
Labels
No labels