Skip to content

Commit 724751e

Browse files
smith doc tweaks
1 parent c716be7 commit 724751e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Diff for: doc/python/smith-charts.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,20 @@ A [Smith Chart](https://en.wikipedia.org/wiki/Smith_chart) is a specialized char
4040

4141
```python
4242
import plotly.graph_objects as go
43-
go.Figure(
43+
fig = go.Figure(
4444
go.Scattersmith(
4545
imag=[0.5, 1, 2, 3],
4646
real=[0.5, 1, 2, 3],
4747
)
4848
)
49+
fig.show()
4950
```
5051

5152
### Smith Chart Subplots and Styling
5253

5354
```python
5455
import plotly.graph_objects as go
55-
go.Figure(
56+
fig = go.Figure(
5657
data=[
5758
go.Scattersmith(
5859
imag=[1],
@@ -79,15 +80,18 @@ go.Figure(
7980
domain=dict(x=[0,0.5])
8081
),
8182
smith2=go.layout.Smith(
82-
bgcolor='lightgrey',
8383
realaxis_gridcolor='blue',
8484
imaginaryaxis_gridcolor='red',
8585
domain=dict(x=[0.5,1])
8686
)
8787
)
8888
)
89+
fig.show()
8990
```
9091

9192
#### Reference
92-
See https://plotly.com/python/reference/scattersmith/ for more information and chart attribute options!
93+
See https://plotly.com/python/reference/scattersmith/ and https://plotly.com/python/reference/layout/smith/ for more information and chart attribute options!
94+
95+
```python
9396

97+
```

0 commit comments

Comments
 (0)