如何加快matplotlib 3d图表渲染?

时间:2014-01-14 13:09:32

标签: python matplotlib

我在python中使用matplotlib创建带有plot_trisurf的3d图形,graph是元组中大约60,000个点的列表(X,Y,Z) 但是,当我运行程序时,渲染图形的时间大约是10/15秒,有没有办法加快速度? 我的代码在

之下
import matplotlib.pyplot as plot
from mpl_toolkits.mplot3d import Axes3D

#create figure
fig = plot.figure()
ax = fig.add_subplot(111, projection='3d')

#plot points on graph
X, Y, Z = zip(*graph)
ax.plot_trisurf(X, Y, Z, cmap=cm.jet, linewidth=0.2)
plot.show()

0 个答案:

没有答案
相关问题