[Implemented] Choosing default (qualitative) color palette for plotting functions #894
Replies: 3 comments 3 replies
-
Can we interpolate between the colors of a palette in case we need more colors than the palette provides? |
Beta Was this translation helpful? Give feedback.
-
Actually I do not understand why. A color is just an RGB or a HEX number...
Sure.
No, I would expect it to generate a separate color for no matter how many data sets are provided. Sure, if the user is not happy with the automatic colors, he could choose its own palette. But out of the box, I do not want to think about how many colors I might need. |
Beta Was this translation helpful? Give feedback.
-
We need a way to generate as many distinct colors as required. I don't care if we take some of the palettes (I prefer Set1 or Dark2) and only interpolate/generate new colors if the default palette does not suffice. Example of a figure with >12 data sets (and therefore more than 12 colors would be required): |
Beta Was this translation helpful? Give feedback.
-
We need to choose a default color palette for #871. The chosen palette should satisfy the following conditions:
I'd personally recommend either Paired or Dark2 palette from
{RColorBrewer}
package.Available palettes in RColorBrewer
Note before
This does not mean we gain
{RColorBrewer}
package as an additional hard dependency of{ospsuite}
. We just need to decide on a palette, and I can port over a vector of colors. No need to rely on that entire package for a single palette.Tabular summary for these palettes
Created on 2022-04-25 by the reprex package (v2.0.1.9000)
Beta Was this translation helpful? Give feedback.
All reactions