-
-
Notifications
You must be signed in to change notification settings - Fork 3
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 option to white marker label color #5
Comments
It would be cool if the labcolor()-option from the sunburst-package can be ported to treemap (asjadnaqvi/stata-sunburst#3 (comment)). |
Dear @asjadnaqvi, I propose the following changes to the code:
Then change all I tested it with my use case and it works. |
My code above only works with named colors. I try to find a way to get the RGB values working... |
Marc, can you give an example figure to show what you are trying to do? |
Of course:
|
With the palettes that do not use named colors - it does not work. But I am a Mata Newbie - so no clue how to do it the best way. It should be possible to add the RGB into the color list and then to contrast them... |
Ok so for darker background colors, the label color should be lighter in order to increase the contrast for readability. I prefer having a generic solution that can be added to all packages. For sure it will be very useful. For example bimap, labels are not visible with darker colors. I will have a look! |
This code-addition also works with the tableau-palette without named colors:
|
some colors in the scheme / colorpalette I need to use due to corporate design are so dark that white would be a better choice as mlabcolor(). Not sure if there is a way to determine it automatically by colorpalette - but an option to say e.g. color 3 = white - would be cool.
The text was updated successfully, but these errors were encountered: