-
Notifications
You must be signed in to change notification settings - Fork 75
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
Change default color for plugin lines and scatter marks to increase visibility #2453
Conversation
Codecov ReportPatch coverage is
📢 Thoughts on this report? Let us know!. |
orange, remove orange from color cycler
16f20d2
to
8b2ee0d
Compare
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.
Code changes look good to me and I think this change is well-warranted to be worth the slightly jarring initial change if you're used to the old blue.
I'd definitely like to hear opinions from at least @camipacifici and @Jenneh before merging though... and although UI-styling changes often skip the change log, I think we'll want to include this in case it catches anyone off guard.
Big improvement. I checked this for color blindness accessibility, and it looked good. I approve of this change. |
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.
Approving by proxy from Jenn's comment.
Checking with @larrybradley @orifox @PatrickOgle |
Ok from Ori! Lets see if Patrick and Larry have objections in the next day or so, otherwise this is good to go. |
I approve. |
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 great!
The color of a line or scatter mark generated by a plugin is currently hard-coded to be jdaviz blue, which is indistinguishable from the second color in the data color cycler (load more than one e.g. spectrum and you'll see a blue line that's nearly identical to the plugin result color). This can lead to confusion between the plugin previews and the data entries.
This PR sets the default color of plugin-generated lines and scatter marks to the jdaviz "accent" color orange ("#C75D2C"), and removes the third color from the jdaviz color cycler, which is a similar orange to the accent color. This way there's no significant color overlap between data entries and plugin marks.
You can inspect the colors in the cycler (both before and after this PR) in a notebook with:
On main, this gives:
Screenshots
Imviz marks are now orange rather than blue, which is weird at first. I'm not sure it's much different in visibility though.
In Specviz2D, the first extracted spectrum (in blue) is now distinguishable from the spectral extraction preview (orange on this branch, blue on main):
In LCviz, Binning plugin previews are now distinguishable from the second-loaded light curve entry (orange on this branch, blue on main):
Change log entry
CHANGES.rst
? If you want to avoid merge conflicts,list the proposed change log here for review and add to
CHANGES.rst
before merge. If no, maintainershould add a
no-changelog-entry-needed
label.Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
trivial
label.