如何在朱莉娅中制作3D交互式图形?
我找到了一个带有类似教程的网页。但是,当我将代码复制为运行时,它会出现错误。希望大家能帮助我。 在此处输入链接描述
using PlotlyJS, CSV, HTTP, DataFrames
# Read data from a csv
df = CSV.File(
HTTP.get("https://raw.githubusercontent.com/plotly/datasets/master/api_docs/mt_bruno_elevation.csv").body
) |> DataFrame
z_data = Matrix{Float64}(df)
layout = Layout(
title="Mt Bruno Elevation",
autosize=false,
width=500,
height=500,
margin=attr(l=65, r=50, b=65, t=90)
)
plot(surface(z=z_data), layout)
他给我的错误如下。
ERROR: IOError(Base.IOError("getaddrinfo: no such file or directory (ENOENT)", -4058) during request(https://raw.githubusercontent.com/plotly/datasets/master/api_docs/mt_bruno_elevation.csv))
I found a web page with a similar tutorial. But when I copy the code to run, it gives an error. Hope you all can help me.
enter link description here
using PlotlyJS, CSV, HTTP, DataFrames
# Read data from a csv
df = CSV.File(
HTTP.get("https://raw.githubusercontent.com/plotly/datasets/master/api_docs/mt_bruno_elevation.csv").body
) |> DataFrame
z_data = Matrix{Float64}(df)
layout = Layout(
title="Mt Bruno Elevation",
autosize=false,
width=500,
height=500,
margin=attr(l=65, r=50, b=65, t=90)
)
plot(surface(z=z_data), layout)
The error he gave me is as follows.
ERROR: IOError(Base.IOError("getaddrinfo: no such file or directory (ENOENT)", -4058) during request(https://raw.githubusercontent.com/plotly/datasets/master/api_docs/mt_bruno_elevation.csv))
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论