8000 Fix undefined plotting arguments in Data2DT and Data3D by evadiva3 · Pull Request #414 · fooof-tools/fooof · GitHub
[go: up one dir, main page]

Skip to content

Fix undefined plotting arguments in Data2DT and Data3D - #414

Open
evadiva3 wants to merge 1 commit into
fooof-tools:mainfrom
evadiva3:fix/specparam-1-spectrogram-plot-nameerror
Open

evadiva3 wants to merge 1 commit into
fooof-tools:mainfrom
evadiva3:fix/specparam-1-spectrogram-plot-nameerror

Conversation

@evadiva3
Copy link
Copy Markdown

Data2DT.plot() and Data3D.plot() both raise NameError because they pass an undefined plot_kwargs variable to plot_spectrogram().

Forward plt_kwargs from the method arguments, and let Data3D.plot() accept those arguments too. The regression tests call both methods with a custom colormap and aspect setting.

Validation: pytest specparam/tests/data/test_data.py — 14 passed. Both new plotting tests fail on the base code. Both plots were also rendered with the Agg backend.

This branch has not been deployed

No deployments
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

0