Simulation-Decomposition / simdec-python

Sensitivity analysis using simulation decomposition
https://simdec.readthedocs.io
BSD 3-Clause "New" or "Revised" License
21 stars 0 forks source link

Custom default colors #11

Closed tupui closed 10 months ago

tupui commented 10 months ago

Excellent, thanks, @tupui! This way is even better. Can we set the default colors as these? {'#DC267F'; '#E8EA2F'; '#26DCD1';'#C552E4';'#3F45D0'} (first should go to the low-low-low scenario)

Originally posted by @gnopik in https://github.com/Simulation-Decomposition/simdec-python/issues/10#issuecomment-1766281980

tupui commented 10 months ago

SEQUENTIAL_PALETTES could either be a list of str or mpl.colors.LinearSegmentedColormap (using colormap_from_single_color). Then we just need to update the cmaps logic in palette to take that into account.

gnopik commented 10 months ago

@tupui, for decomposition with 3 variables the default colors are too close to each other (screenshot 1). When repainted, looks fine (screenshot 2). Can we have the second color palette blue-ish as in the case of two variables for decomposition (screenshot 3)?

Checked on different datasets, the same.

image

image

image

tupui commented 10 months ago

Yeah I've seen that. I need to understand what is happening because I would expect "Oranges" and then "Purples". Not "Reds".

tupui commented 10 months ago

All fixed with https://github.com/Simulation-Decomposition/simdec-python/commit/9d116996ab6a87cb8c11d129f014a3c4cb14f719 and a50c803ca88153e6ab5513b94f6325cc29952adb