File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ jupyter:
2727 language : python
2828 layout : base
2929 name : Supported CSS Colors
30- order : 40
30+ order : 41
3131 page_type : example_index
3232 permalink : python/css-colors/
3333 thumbnail : thumbnail/shape.jpg
@@ -49,7 +49,7 @@ fig = go.Figure([
4949 marker_color = ' royalblue'
5050 )
5151])
52-
52+
5353fig.show()
5454```
5555
@@ -100,15 +100,15 @@ fig = go.Figure(layout=dict(title="Supported Named CSS Colors"))
100100for i, color in enumerate (supported_colors):
101101 row, col = i // 5 , i % 5
102102 x0, y0 = col * 1.2 , - row * 1.2
103-
103+
104104 fig.add_shape(
105105 type = " rect" ,
106106 x0 = x0, y0 = y0,
107107 x1 = x0+ 1 , y1 = y0+ 1 ,
108108 fillcolor = color,
109109 line = dict (color = " black" , width = 0.2 ),
110110 )
111-
111+
112112 fig.add_annotation(
113113 x = x0+ 0.5 , y = y0- 0.1 ,
114114 text = color,
You can’t perform that action at this time.
0 commit comments