-
Notifications
You must be signed in to change notification settings - Fork 333
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
Make colors configurable #30
Comments
good idea! |
@dhaitz : How should the configuration look like in your opinion? Global or per function call? As far as I could see from the code, the colors are currently just global constants which can be overwritten, e.g. Probably the easiests way would be to have a global dictionary which stores the colors and can be overwritten for customization, e.g. @parrt : Any preferences?
|
I think some kind of argument would be better than tweaking the globals. |
or just |
@parrt ah yes, of course this is the simple and straightforward solution. Another approach would be:
which would allow you to overwrite only certain keys in the |
Please have a look at Ashafix@ee02d0f
|
@Ashafix Looks pretty good! widespread changes but it's adding a lot of control to the look of the plots. could you make a PR? I'm wondering if colors.py should be a separate file or included... thoughts? |
@parrt : Thanks for the quick feedback! Personal opinion, I'd prefer a separate file for the colors/configuration, but not my library. I will test and document all parameters and then create a PR. |
sounds great. does extra file cause any package weirdness for users? if invisible, let's factor out into colors.py :) |
While you are on colors, could you do font's as well :) (Ie make them configurable) |
@mattharrison : one PR at a time... |
Hi!
Could you make the colors configurable? I like the idea of being colorblind-friendly; unfortunately on some projectors the palette colors are indistinguishable.
Thanks and cheers
The text was updated successfully, but these errors were encountered: