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

[FIX] use proper grid spec when plotting carpet plots #4279

Merged
merged 2 commits into from Feb 26, 2024

Conversation

Remi-Gau
Copy link
Collaborator

Changes proposed in this pull request:

Copy link
Contributor

👋 @Remi-Gau 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.

  • PR has an interpretable title.
  • PR links to Github issue with mention Closes #XXXX (see our documentation on PR structure)
  • Code is PEP8-compliant (see our documentation on coding style)
  • Changelog or what's new entry in doc/changes/latest.rst (see our documentation on PR structure)

For new features:

  • There is at least one unit test per new function / class (see our documentation on testing)
  • The new feature is demoed in at least one relevant example.

For bug fixes:

  • There is at least one test that would fail under the original bug conditions.

We will review it as quick as possible, feel free to ping us with questions if needed.

Copy link

codecov bot commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.06%. Comparing base (abb80ff) to head (bf95b41).
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4279      +/-   ##
==========================================
+ Coverage   91.85%   92.06%   +0.20%     
==========================================
  Files         144      144              
  Lines       16419    16422       +3     
  Branches     3434     3436       +2     
==========================================
+ Hits        15082    15119      +37     
+ Misses        792      761      -31     
+ Partials      545      542       -3     
Flag Coverage Δ
macos-latest_3.10_test_plotting 91.85% <ø> (?)
macos-latest_3.11_test_plotting 91.85% <ø> (+<0.01%) ⬆️
macos-latest_3.8_test_plotting 91.81% <ø> (?)
macos-latest_3.9_test_plotting 91.82% <ø> (?)
ubuntu-latest_3.10_test_plotting 91.85% <ø> (+<0.01%) ⬆️
ubuntu-latest_3.11_test_plotting 91.85% <ø> (?)
ubuntu-latest_3.8_test_min 68.93% <ø> (?)
ubuntu-latest_3.8_test_plot_min 91.56% <ø> (?)
ubuntu-latest_3.8_test_plotting 91.81% <ø> (?)
windows-latest_3.11_test_plotting 91.83% <ø> (?)
windows-latest_3.12_test_plotting 91.83% <ø> (?)
windows-latest_3.8_test_plotting 91.79% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Remi-Gau Remi-Gau marked this pull request as ready for review February 21, 2024 12:47
Copy link
Member

@bthirion bthirion left a comment

Choose a reason for hiding this comment

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

Thx for tackling this !

# pull_request:
# branches:
# - '*'
pull_request:
Copy link
Member

Choose a reason for hiding this comment

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

oops, this seems to be unrelated.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually this is intentional: this is the 3rd time that I have had to go and manually check in the action tab to see if something numpy2 related was broken. I'd rather have this check run regularly for better automatic early detection.

By doing this it will be checked with every PR: this would also ensure that every PR does not bring changes that would be numpy2 incompatible.

)

fig.show()
plt.show()
Copy link
Member

Choose a reason for hiding this comment

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

This is incompatible with latest mpl ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

nope this is because if you run the example as a script the figures closes right away and you do not have time for proper visual inspection

@Remi-Gau Remi-Gau merged commit f9c8107 into nilearn:main Feb 26, 2024
32 checks passed
@Remi-Gau Remi-Gau deleted the fix/4278 branch February 26, 2024 10:34
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.

Failure of carpet plot with matplotlib-3.9.0.dev0
2 participants