@@ -42,7 +42,7 @@ import plotly.graph_objects as go
42
42
import numpy as np
43
43
44
44
# Download data set from plotly repo
45
- pts = np.loadtxt(np.DataSource().open(' https://raw.githubusercontent.com/plotly/datasets/master/mesh_dataset.txt' ))
45
+ pts = np.loadtxt(np.lib.npyio. DataSource().open(' https://raw.githubusercontent.com/plotly/datasets/master/mesh_dataset.txt' ))
46
46
x, y, z = pts.T
47
47
48
48
fig = go.Figure(data = [go.Mesh3d(x = x, y = y, z = z, color = ' lightpink' , opacity = 0.50 )])
@@ -58,7 +58,7 @@ The `alphahull` parameter sets the shape of the mesh. If the value is -1 (defaul
58
58
import plotly.graph_objects as go
59
59
import numpy as np
60
60
61
- pts = np.loadtxt(np.DataSource().open(' https://raw.githubusercontent.com/plotly/datasets/master/mesh_dataset.txt' ))
61
+ pts = np.loadtxt(np.lib.npyio. DataSource().open(' https://raw.githubusercontent.com/plotly/datasets/master/mesh_dataset.txt' ))
62
62
x, y, z = pts.T
63
63
64
64
fig = go.Figure(data = [go.Mesh3d(x = x, y = y, z = z,
0 commit comments