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

[ENH] In GUI, flip the distal drives when plotting the input histogram #923

Merged
merged 7 commits into from
Nov 6, 2024

Conversation

dylansdaniels
Copy link
Collaborator

No description provided.

@dylansdaniels dylansdaniels changed the title [MRG] In GUI, flip the distal drives when plotting the input histogram [ENH] In GUI, flip the distal drives when plotting the input histogram Oct 30, 2024
@dylansdaniels
Copy link
Collaborator Author

@ntolley I haven't added tests yet but otherwise this is ready for class

asoplata and others added 5 commits November 6, 2024 14:41
Since the addition of inverted spike histograms requires the use of two
Axes objects, we need to change a few small things:

1. Add a label to our new, second Axes object upon creation in `viz`
2. Use this label to completely remove the second Axes object when
"Clear axis" button is pressed
3. Since axes of type "input histogram" are now going to have 2 Axes
object, while most others will only have 1, we need to make an exception
in the testing. I have done so in `tests/test_gui.py` along with a small
refactor.

The test refactor consists of moving the content of
`test_gui_adaptive_spectrogram` into just another case of the
`test_gui_visualization` test. Additionally, all tests in that test now
take place in a brand-new "Blank single figure", so that their total
axes number do NOT include those of axes that are not the current
`viz_type` being tested (which was the case before).
fix: accomodate invert-hist second Axes obj
@asoplata asoplata merged commit 5b11ad3 into jonescompneurolab:master Nov 6, 2024
12 checks passed
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.

3 participants