You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/python/smith-charts.md
+8-4
Original file line number
Diff line number
Diff line change
@@ -40,19 +40,20 @@ A [Smith Chart](https://en.wikipedia.org/wiki/Smith_chart) is a specialized char
40
40
41
41
```python
42
42
import plotly.graph_objects as go
43
-
go.Figure(
43
+
fig =go.Figure(
44
44
go.Scattersmith(
45
45
imag=[0.5, 1, 2, 3],
46
46
real=[0.5, 1, 2, 3],
47
47
)
48
48
)
49
+
fig.show()
49
50
```
50
51
51
52
### Smith Chart Subplots and Styling
52
53
53
54
```python
54
55
import plotly.graph_objects as go
55
-
go.Figure(
56
+
fig =go.Figure(
56
57
data=[
57
58
go.Scattersmith(
58
59
imag=[1],
@@ -79,15 +80,18 @@ go.Figure(
79
80
domain=dict(x=[0,0.5])
80
81
),
81
82
smith2=go.layout.Smith(
82
-
bgcolor='lightgrey',
83
83
realaxis_gridcolor='blue',
84
84
imaginaryaxis_gridcolor='red',
85
85
domain=dict(x=[0.5,1])
86
86
)
87
87
)
88
88
)
89
+
fig.show()
89
90
```
90
91
91
92
#### 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!
0 commit comments