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] allow using symmetric maps with plotly #3942
Conversation
👋 @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.
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 #3942 +/- ##
=======================================
Coverage 91.76% 91.77%
=======================================
Files 134 134
Lines 15747 15751 +4
Branches 3283 3283
=======================================
+ Hits 14451 14455 +4
Misses 752 752
Partials 544 544
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 7 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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 otherwise.
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
Another solution would be to just remove |
Silly me. I had not even checked. |
implemted your suggestion instead |
hemi='left', | ||
view='lateral', | ||
engine='matplotlib', | ||
avg_method='median', |
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.
Added a default argument for avg_method
that was implicitly passed to to plot_surf
(but with a different default than that of plot_surf) and could lead to similar problems as for symmetric_cmap
.
This is technically a change of the API in the doc though it could always be passed as kwarg. Should we mention it in an "added in version" ? I would say no but this is not a hill I will die on.
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.
Maybe not indeed (no strong feeling on my side.)
Changes proposed in this pull request: