【发布时间】:2021-01-21 03:30:31
【问题描述】:
我正在使用散点图和曲面图绘制 3D 分布的数据。从下面的 sn-ps 可以看出,尽管散点图没有显示任何缺失的数据集,但我在使用曲面图时遇到了不连续性。是否有我忽略的参数/选项?
我使用的代码如下:
fig = go.Figure(data=[go.Scatter3d(x=x, y=y, z=z,
mode='markers',
marker=dict(size=5,
color=d, # set color to an array/list of desired values
colorscale='Viridis', # choose a colorscale
opacity=1.,
showscale=True # to show the legend according to the color
)
)])
fig.update_layout(title='TFMeOx MFPADs theory scattered',margin=dict(l=0, r=0, b=0, t=0))
fig.show()
fig = go.Figure(data=[go.Surface(z=Z, x=X, y=Y, surfacecolor=d_matrix)])
fig.update_layout(title='TFMeOx MFPADs theor surfy', autosize=False,
# width=500, height=500,
# margin=dict(l=65, r=50, b=65, t=90))
margin=dict(l=0, r=0, b=0, t=0))
fig.show()
非常欢迎任何建议!
【问题讨论】:
标签: python python-3.x plotly