-
Notifications
You must be signed in to change notification settings - Fork 53
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
upgrade plot_morphology #496
Comments
@jasmainak Sure thing! |
There is: The plotting is being done in So currently, So the goal is to take the general 'cell plotting' code in @jasmainak Do I have that right? Additionally, the |
nopes, they are different visualizations: what I am imagining is something like this: or as in this paper: https://www.sciencedirect.com/science/article/pii/S1053811920309526 |
Btw, all the visualization functions are put in one file so that the code is all in one place and redundancy is avoided between functions. Then they are called from the methods of the classes. Sometimes it's nice to have a different name. For example if you a plotting method for dipole.plot() but in |
Ahh yes I understand. So you want a new method (ex. @jasmainak is that right? |
I would create a separate function/method. You can always combine it with other visualizations by creating subplots. E.g.: fig, axes = plt.subplots(2, 1)
net.plot_morphology(ax=axes[0])
net.plot_cells(ax=axes[1]) I'm sorry I had forgotten that a |
This I understand now, makes perfect sense. |
Sounds good!
I thought My understanding was that you wanted me to create a I think I have a pretty good understanding of what needs to be done. If it's alright with you, let me give it a shot, and we can move this conversation to a PR @jasmainak . |
yes. I mean that I confused you in the original post by using that name since that function is already for a different purpose. Give it a shot and we can discuss more there! |
Currently
plot_morphology
is a method ofCell
. However, for LFP plotting it is useful to have it as a method ofNetwork
. The current code would be refactored into a private function that will be called from the newplot_cells
method? The code will iterate of the cells incell_type
and create a plot whose y-axis is the same as the LFP/CSD plot.@mjpelah do you want to give this a shot?
The text was updated successfully, but these errors were encountered: