From 2a950b9570a62286a81a08ecada35bc8dcf4c4b2 Mon Sep 17 00:00:00 2001 From: Vitor Gratiere Torres <26410338+vitorgt@users.noreply.github.com> Date: Mon, 12 Apr 2021 09:12:11 -0300 Subject: [PATCH] Use colorblind-friendly colors in the scatter plots gallery example (#1013) Co-authored-by: Michael Grund --- examples/gallery/symbols/scatter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/gallery/symbols/scatter.py b/examples/gallery/symbols/scatter.py index 2d3199b35c8..1631c306a9f 100644 --- a/examples/gallery/symbols/scatter.py +++ b/examples/gallery/symbols/scatter.py @@ -21,7 +21,7 @@ projection="X10c/10c", frame=["xa0.2fg", "ya0.2fg", "WSrt"], ) -for color in ["blue", "orange", "green"]: +for color in ["gray73", "darkorange", "slateblue"]: x, y = np.random.rand(2, n) # random X and Y data in [0,1] sizes = np.random.rand(n) * 0.5 # random size [0,0.5], in cm # plot data points as circles (style="c"), with different sizes @@ -32,9 +32,9 @@ sizes=sizes, color=color, # Set the legend label, - # and set the circle size to be 0.25 cm (+S0.25c) in legend + # and set the symbol size to be 0.25 cm (+S0.25c) in legend label=f"{color}+S0.25c", - transparency=70, # set transparency level for all symbols + transparency=50, # set transparency level for all symbols ) fig.legend(transparency=30) # set transparency level for legends