Skip to content

Commit 18c5643

Browse files
fix marker style doc
1 parent 96cebe3 commit 18c5643

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: doc/python/marker-style.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.2'
9-
jupytext_version: 1.3.2
9+
jupytext_version: 1.4.2
1010
kernelspec:
1111
display_name: Python 3
1212
language: python
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.0
23+
version: 3.7.7
2424
plotly:
2525
description: How to style markers in Python with Plotly.
2626
display_as: file_settings
@@ -323,8 +323,8 @@ raw_symbols = SymbolValidator().values
323323
namestems = []
324324
namevariants = []
325325
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]
328328
symbols.append(raw_symbols[i])
329329
namestems.append(name.replace("-open", "").replace("-dot", ""))
330330
namevariants.append(name[len(namestems[-1]):])
@@ -335,11 +335,11 @@ fig = go.Figure(go.Scatter(mode="markers", x=namevariants, y=namestems, marker_s
335335
hovertemplate="name: %{y}%{x}<br>number: %{marker.symbol}<extra></extra>"))
336336
fig.update_layout(title="Mouse over symbols for name & number!",
337337
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)
339339
fig.show()
340340
```
341341

342342

343343
### Reference
344344

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

Comments
 (0)