@@ -42,7 +42,7 @@ import plotly.graph_objects as go
4242import numpy as np
4343
4444# 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' ))
4646x, y, z = pts.T
4747
4848fig = 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
5858import plotly.graph_objects as go
5959import numpy as np
6060
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' ))
6262x, y, z = pts.T
6363
6464fig = go.Figure(data = [go.Mesh3d(x = x, y = y, z = z,
0 commit comments