-
Notifications
You must be signed in to change notification settings - Fork 153
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
Add a preferred_cmap attribute to visual.py #2131
Add a preferred_cmap attribute to visual.py #2131
Conversation
Finally got every working the way @astrofrog and @Cadair envisioned it while passing Travis CI! PR is ready for a review. |
@astrofrog Would it be a good idea to add something similar for the |
Codecov Report
@@ Coverage Diff @@
## master #2131 +/- ##
==========================================
- Coverage 87.86% 87.85% -0.02%
==========================================
Files 246 246
Lines 22709 22721 +12
==========================================
+ Hits 19954 19961 +7
- Misses 2755 2760 +5
Continue to review full report at Codecov.
|
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.
Thanks for the PR! As indicated below, can you revert all changes in the .glu files and make sure everything still works?
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.
Thanks for the updates! Just a few more requests 😄
Think I will need some help to debug the Linux-related CI checks failures... |
Plus one macos-related CI test failure... |
Locally |
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.
Almost there - just have a couple of small remaining comments. Thanks!
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.
Final round of comments 😀
Changes made. PR is ready for another review. |
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.
Just a couple of small comments below, but this is almost 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.
Looks good now but see small comment below
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.
Looks good! Thanks for responding to the reviews 😄
My pleasure 🙂 |
Edit files to remove unused imports Comment out problematic set_preferred_cmap line Get rid of unneeded set_preferred_cmap lines Update docstring of preferred_cmap callback property in visual Clean up after conducting more thorough testing Fix typo in doctring Tidy up and debug Remove preferred_cmap as a DeferredDrawCallbackProperty Remove unused line Add preferred_cmap attribute for SunPy SJI maps Tidy up by removing print statement for testing Make changes according to reviewer suggestion Make changes according to reviewer's suggestions Make changes according to reviewer's suggestions Make modifications according to reviewer suggestions
Thanks @astrofrog! |
Description
To enable the addition of a
preferred_cmap
attribute so that if this parameter is set amatplotlib.colors.Colormap
object can be used as the colormap setting of the2D image
.