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

MRG: somewhat better plots #9

Merged

Conversation

kalenkovich
Copy link
Collaborator

closes #2

In the end, I decided not to mess with the Welch parameters because (a) line plots with grey background look reasonable enough to me with the current parameters, (b) I realized I have no idea how to decide on the window size in a principled manner and got annoyed by trying random parameters and reloading the plots :)

Otherwise, I just copied your function, switched from stem plots to line plots for the grand averages by default, and edited the function a bit. I committed every small edit so that you could go through them one by one and we could reverse some of them if necessary.

A pdf of the tutorial is attached.
201130_ssvep_tutorial.pdf

@kalenkovich
Copy link
Collaborator Author

Oh, one more thing: I tripped a couple of times over the dimension variable. Would you mind if we used something like n_dimensions instead?

###############################################################################
# SNR plotting function
# ^^^^^^^^^^^^^^^^^^^^^^^^
def plot_snr_spectrum(snrs, freqs, use_stem_plot=False, stim_freq=None, bg_var_trials=False, bg_var_channels=False,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for being a bit inconsistent with earlier, but i think here the function makes it more difficult than necessary :D

the catches and further options are not necessary, if we dont use them in the tutorial, and the other plots are also written in plain code.
..this would also make the n_dimensions fix obsolete (which is indeed the better name)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem! I'll remove the function.

@dominikwelke
Copy link
Owner

btw, i have added your fork as remote so i can easily checkout your working branch and build the tutorial myself.
no need to attach a pdf, if you dont want to :)

@dominikwelke
Copy link
Owner

alright with the welch parameters. maybe someone has feedback/a strong opinion if we open the upstream PR

@kalenkovich
Copy link
Collaborator Author

kalenkovich commented Dec 2, 2020 via email

@kalenkovich
Copy link
Collaborator Author

kalenkovich commented Dec 2, 2020 via email

Also changed "trial average" to "averaged over trials", etc.
@kalenkovich
Copy link
Collaborator Author

kalenkovich commented Dec 3, 2020

@kalenkovich
Copy link
Collaborator Author

Another option is to plots SNR on the logarithmic scale:

image

@dominikwelke
Copy link
Owner

thanks!
looks good, i'll merge now

we can discuss the log scale in #4 or #5.

@dominikwelke dominikwelke merged commit 31024a4 into dominikwelke:ssvep-tutorial-master Dec 4, 2020
@dominikwelke dominikwelke added the enhancement New feature or request label Dec 4, 2020
@dominikwelke dominikwelke added this to the prepare upstream PR milestone Dec 4, 2020
@dominikwelke dominikwelke mentioned this pull request Dec 4, 2020
@kalenkovich kalenkovich deleted the ek_better-plots branch December 4, 2020 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants