-
Notifications
You must be signed in to change notification settings - Fork 341
Plotting functions (feedback needed, so I can modify the others) #7
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
Conversation
|
This is a good first step. The first time the function is called, figures are created and returned to the user. This can be seen from the As for future plots and statistics, this should be discussed at our next subgroup meeting. I would like to see a function for plotting an arbitrary recorded variable over time, e.g., from a This might not be possible: the tricky part is the separate configuration for each type of recorded value; e.g., spikes should be plotted using |
|
@hqkhan If you can resolve the merge conflicts on this branch, I will approve this pull request. |
|
@djsaunde I completely agree. I wanted to do a generic plotting function but there would need to be a structure in how the variables are stored inside monitor. For instance, we could add more attributes to the monitor class, sort of like keywords that the plotting function looks for and uses appropriate I did this plotting function just to showcase an idea of looking at a specific slice of time (it was also more so of me familiarizing with coding with this package). Also, the "ims" part now makes a lot more sense. The number of plots created could be equal to the number of monitor variables. Any extra plots that the user wants, would need to be created on the fly I image. Yup, it's not difficult at all, I was simply inquiring the reasoning behind it. |
|
Makes sense. It might be possible to have keyword arguments instead in a generic |
|
True, that would make more sense since they are plotting arguments. Yes, definitely but the final result I imagine would be very good given things work out. I will resolve the conflict and then work on something bigger. |
|
I'm not exactly sure how to merge my changes. The conflict is within the notebook. I've moved my additions at the bottom of the document so that there are no overlapping potentially. |
|
Hm, the conflicts still exist. You'll have to (locally) do a |
|
It looks like you merged into |
|
So what I did was, I merged, deleted my branch, updated my local master branch and created another branch off of it. Sorry about that, I can create a pull request for reverting the changes. |
I brought over plotting.py from spiketorch as a baseline. For starters, I modified plot_spikes to do a few more things that are explained inside the code. Also, in "simple test network.ipynb" I am showing the new changes (being able to plot for a certain amount of time). I'm creating a pull request to get some feedback from all of you. I thought being able to narrow down specific times was going to be a useful feature. I can do the same for plot_voltages.
I think it is not necessary to have user give their own figure to plot on. I feel like I should remove ims from the function. Thoughts?
Here are a few questions: What other plots are we interested in? Plots for weights and others are essentially implemented. Even voltages one is not hard. I can do the same thing on them to be able to modify timings of plots.
What kind of stats are we interested in? Stats such as mean voltages of all neurons plotted over time?