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
[DOC] Use code cell syntax for splitting blocks in 01_plotting examples #4000
Conversation
👋 @ymzayek Thanks for creating a PR! Until this PR is ready for review, you can include the [WIP] tag in its title, or leave it as a github draft. Please make sure it is compliant with our contributing guidelines. In particular, be sure it checks the boxes listed below.
For new features:
For bug fixes:
We will review it as quick as possible, feel free to ping us with questions if needed. |
Codecov Report
@@ Coverage Diff @@
## main #4000 +/- ##
=======================================
Coverage 91.77% 91.77%
=======================================
Files 134 134
Lines 15786 15786
Branches 3291 3291
=======================================
Hits 14487 14487
Misses 755 755
Partials 544 544
Flags with carried forward coverage won't be shown. Click here to find out more. 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
# It's also possible to visualize volumes in a LR-flipped "radiological" view | ||
# Just set radiological=True | ||
plotting.plot_stat_map( | ||
stat_img, | ||
threshold=3, | ||
title="plot_stat_map", | ||
cut_coords=[36, -27, 66], | ||
radiological=True, | ||
) |
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.
Not really related to this PR but this is just moving this plot from the bottom of this example to here as it makes more sense to compare directly with the same plot above it but in radiological view
# Setting ``plot_abs=True`` and ``display_mode='yx'`` (returns a | ||
# :class:`~nilearn.plotting.displays.YXProjector`). | ||
|
||
plot_glass_brain( | ||
stat_img, threshold=3, colorbar=True, plot_abs=False, display_mode="yx" | ||
stat_img, threshold=3, colorbar=True, plot_abs=True, display_mode="yx" | ||
) |
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.
Changed to be consistent with the comment
LGTM so far. |
I've checked the relevant examples here: https://output.circle-artifacts.com/output/job/b5d329f1-8ec1-4f2b-85ab-0439ec66af68/artifacts/0/dev/auto_examples/01_plotting/index.html Should be good to go |
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.
Let's Gamble. Try Merging. (LGTM)
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.
LGTM, thx.
Part of #3937
TODO: