Skip to content

Commit d5658aa

Browse files
Use colorblind-friendly colors in the scatter plots gallery example (#1013)
Co-authored-by: Michael Grund <[email protected]>
1 parent 82ebbbc commit d5658aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/gallery/symbols/scatter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
projection="X10c/10c",
2222
frame=["xa0.2fg", "ya0.2fg", "WSrt"],
2323
)
24-
for color in ["blue", "orange", "green"]:
24+
for color in ["gray73", "darkorange", "slateblue"]:
2525
x, y = np.random.rand(2, n) # random X and Y data in [0,1]
2626
sizes = np.random.rand(n) * 0.5 # random size [0,0.5], in cm
2727
# plot data points as circles (style="c"), with different sizes
@@ -32,9 +32,9 @@
3232
sizes=sizes,
3333
color=color,
3434
# Set the legend label,
35-
# and set the circle size to be 0.25 cm (+S0.25c) in legend
35+
# and set the symbol size to be 0.25 cm (+S0.25c) in legend
3636
label=f"{color}+S0.25c",
37-
transparency=70, # set transparency level for all symbols
37+
transparency=50, # set transparency level for all symbols
3838
)
3939

4040
fig.legend(transparency=30) # set transparency level for legends

0 commit comments

Comments
 (0)