Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualize networks and cells via view #187

Merged
merged 8 commits into from
Dec 8, 2023
Merged

Visualize networks and cells via view #187

merged 8 commits into from
Dec 8, 2023

Conversation

michaeldeistler
Copy link
Contributor

@michaeldeistler michaeldeistler commented Dec 7, 2023

A new visualizer for jaxley.

I am currently using networkx only for plotting the "point neuron view": net.vis(detail="point"). For all other things, I wrote my own plotting function. I think that what is implemented now is very flexible and did not require much code.

New API

net.vis()
net.cell([0, 1, 3]).vis()
net.cell(0).branch([0, 2, 3]).vis()

also works for groups:

net.cell(0).add_to_group("excitatory")
net.cell(3).add_to_group("excitatory")
net.excitatory.vis()

Thanks to this new API, I will remove the highlight_branch_inds option and rely on overplotting instead.

@michaeldeistler michaeldeistler changed the title cells can be visualized via view Visualize networks and cells via view Dec 8, 2023
@michaeldeistler michaeldeistler merged commit 5501022 into main Dec 8, 2023
1 check passed
@michaeldeistler michaeldeistler deleted the vis branch December 8, 2023 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant