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
[WIP] Iterate over layers when plotting dipole #479
[WIP] Iterate over layers when plotting dipole #479
Conversation
Codecov Report
@@ Coverage Diff @@
## master #479 +/- ##
==========================================
- Coverage 90.48% 90.42% -0.07%
==========================================
Files 18 18
Lines 3406 3415 +9
==========================================
+ Hits 3082 3088 +6
- Misses 324 327 +3
Continue to review full report at Codecov.
|
fig, ax = plt.subplots() | ||
fig = plot_dipole(dpls, show=False, ax=[ax], layer=['L2']) | ||
fig, axes = plt.subplots(nrows=3, ncols=1) | ||
fig = plot_dipole(dpls, show=False, ax=axes, layer=['L2', 'L5', 'agg']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will this work if axes
is not provided? ideally it should ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, but I guess probably we should not encourage users to do that? there's no reason to provide a list for layer
without specifying the axes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, you mean users should automatically get a subplots without specifying the axes object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes exactly :-) The axes
argument is relevant if you want to add to the plots, for example to compare conditions
can you update an example @chenghuzi do show off this feature? |
Also, if you say "closes #445" in your comment, it will close that issue as soon as this PR is merged. |
which tutorial is the best for showing this feature? there're multiple tutorials involving |
I think that's a great choice. You can also copy some of the narrative from the GUI tutorial. Specifically these lines seem relevant:
also I still can't figure why you don't have circleci getting triggered. We really need to fix this, otherwise it's hard to review if everything is correct. Maybe you have to fiddle some permissions? Do you push using ssh or https? CircleCI got triggered in #478 also a first-time contributor. |
I push code using ssh. Is that the reason? This time I have 5 checks running right after I pushed the code. But the two doc-build ones did not run, I guess it's because we have no files changed inside |
I guessed that tokens might have some permission issues if you were using https. Try a few things to see if you can trigger the build ... this is important to get to work. Google search revealed this: https://support.circleci.com/hc/en-us/articles/360008097173-Why-aren-t-pull-requests-triggering-jobs-on-my-organization- This seemed relevant:
|
I‘ll change some docs to see if it works |
ba66eca
to
99a0551
Compare
excellent! |
Are there other stuff that need to be resolved? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for the slow response! This is looking really clean, I can set aside some time to review tomorrow/this weekend but I suspect this will be a quick merge at first glance |
Thanks @chenghuzi ! Great work 🥳 |
woops, sorry @ntolley ... I thought this fell under the radar. I'm sure @chenghuzi would be happy to address any additional comments you might have. |
Really cutting it close there 😄 , we're definitely in sync today Definitely no worries, I'll still take a look and comment. Thanks @chenghuzi!! |
To close #445.
Demo: