【发布时间】:2019-11-12 17:05:47
【问题描述】:
我已运行此代码,因为我想将列表中的点映射到曲面图中。但是,虽然通过 Z,y,x 的点的范围仅从 1 到 3,但曲面图的维度之一是 1 到 8。您能帮我解决这个问题吗?
import pandas as pd
import plotly
from plotly import __version__
print (__version__) #This is to know which version of plotly you are running ::Reference: https://www.superdatascience.com/pages/learn-plotly
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
import plotly.graph_objects as go
import numpy as np
z_data = np.array([
[1,3,3],
[1,3,3],
[1,2,2],
[2,2,2],
[2,1,2],
[2,2,2],
[3,1,1],
[3,1,1],
[3,2,1],
[3,2,2]
])
z_data
【问题讨论】:
标签: python graph surfaceview surface