f64 commited on
Commit ·
68e81c3
1
Parent(s): 7e8181a
- pages/6_Plotly.py +4 -3
pages/6_Plotly.py
CHANGED
|
@@ -8,13 +8,14 @@ import plotly.graph_objs as go
|
|
| 8 |
|
| 9 |
n = 20 # 200
|
| 10 |
# Add histogram data
|
| 11 |
-
x1 = np.random.randn(n) - 2
|
| 12 |
x2 = np.random.randn(n)
|
| 13 |
-
x3 = np.random.randn(n) + 2
|
|
|
|
| 14 |
|
| 15 |
|
| 16 |
figure = {
|
| 17 |
-
"data": [go.Surface(z=x1, y=x2, x=x3)],
|
| 18 |
"layout": go.Layout(height=700, margin=dict(l=0, r=0, b=0, t=30), uirevision='foo')
|
| 19 |
}
|
| 20 |
|
|
|
|
| 8 |
|
| 9 |
n = 20 # 200
|
| 10 |
# Add histogram data
|
| 11 |
+
x1 = np.random.randn(n) # - 2
|
| 12 |
x2 = np.random.randn(n)
|
| 13 |
+
x3 = np.random.randn(n) # + 2
|
| 14 |
+
x4 = np.random.randn(n)
|
| 15 |
|
| 16 |
|
| 17 |
figure = {
|
| 18 |
+
"data": [go.Surface(z=x1, y=x2, x=x3, color=x4)],
|
| 19 |
"layout": go.Layout(height=700, margin=dict(l=0, r=0, b=0, t=30), uirevision='foo')
|
| 20 |
}
|
| 21 |
|