6
6
extension : .md
7
7
format_name : markdown
8
8
format_version : ' 1.2'
9
- jupytext_version : 1.3 .2
9
+ jupytext_version : 1.4 .2
10
10
kernelspec :
11
11
display_name : Python 3
12
12
language : python
@@ -20,7 +20,7 @@ jupyter:
20
20
name : python
21
21
nbconvert_exporter : python
22
22
pygments_lexer : ipython3
23
- version : 3.7.0
23
+ version : 3.7.7
24
24
plotly :
25
25
description : How to style markers in Python with Plotly.
26
26
display_as : file_settings
@@ -323,8 +323,8 @@ raw_symbols = SymbolValidator().values
323
323
namestems = []
324
324
namevariants = []
325
325
symbols = []
326
- for i in range (0 ,len (raw_symbols),2 ):
327
- name = raw_symbols[i+ 1 ]
326
+ for i in range (0 ,len (raw_symbols),3 ):
327
+ name = raw_symbols[i+ 2 ]
328
328
symbols.append(raw_symbols[i])
329
329
namestems.append(name.replace(" -open" , " " ).replace(" -dot" , " " ))
330
330
namevariants.append(name[len (namestems[- 1 ]):])
@@ -335,11 +335,11 @@ fig = go.Figure(go.Scatter(mode="markers", x=namevariants, y=namestems, marker_s
335
335
hovertemplate = " name: %{y} %{x} <br>number: %{marker.symbol} <extra></extra>" ))
336
336
fig.update_layout(title = " Mouse over symbols for name & number!" ,
337
337
xaxis_range = [- 1 ,4 ], yaxis_range = [len (set (namestems)),- 1 ],
338
- margin = dict (b = 0 ,r = 0 ), xaxis_side = " top" , height = 1200 , width = 400 )
338
+ margin = dict (b = 0 ,r = 0 ), xaxis_side = " top" , height = 1400 , width = 400 )
339
339
fig.show()
340
340
```
341
341
342
342
343
343
### Reference
344
344
345
- See https://plotly.com/python/reference/ for more information and chart attribute options!
345
+ See https://plotly.com/python/reference/ for more information and chart attribute options!
0 commit comments