File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ jupyter:
27
27
language : python
28
28
layout : base
29
29
name : Supported CSS Colors
30
- order : 40
30
+ order : 41
31
31
page_type : example_index
32
32
permalink : python/css-colors/
33
33
thumbnail : thumbnail/shape.jpg
@@ -49,7 +49,7 @@ fig = go.Figure([
49
49
marker_color = ' royalblue'
50
50
)
51
51
])
52
-
52
+
53
53
fig.show()
54
54
```
55
55
@@ -100,15 +100,15 @@ fig = go.Figure(layout=dict(title="Supported Named CSS Colors"))
100
100
for i, color in enumerate (supported_colors):
101
101
row, col = i // 5 , i % 5
102
102
x0, y0 = col * 1.2 , - row * 1.2
103
-
103
+
104
104
fig.add_shape(
105
105
type = " rect" ,
106
106
x0 = x0, y0 = y0,
107
107
x1 = x0+ 1 , y1 = y0+ 1 ,
108
108
fillcolor = color,
109
109
line = dict (color = " black" , width = 0.2 ),
110
110
)
111
-
111
+
112
112
fig.add_annotation(
113
113
x = x0+ 0.5 , y = y0- 0.1 ,
114
114
text = color,
You can’t perform that action at this time.
0 commit comments