【发布时间】:2020-04-11 15:01:56
【问题描述】:
我在 Python 中使用 matplotlib 创建了一个 2D 图,例如: 它是使用 2 个列表生成的:
import matplotlib.pyplot as plt
import numpy as np
plt.plot(X, Y) #X and Y are lists, containing the x and y coordinates of points respectively
plt.show()
现在我想围绕 Y 轴创建该图的旋转,并以 Y 轴垂直的方式对其进行可视化。使用matplotlib如何做到这一点?
【问题讨论】:
-
您想创建一个 3D 曲面作为曲线绕轴旋转的曲面吗?还是只是旋转曲线?
-
我想要一个 3D 表面,您提供的链接很有用,但我认为 William 写的内容也非常有用并且解释得很好
标签: python matplotlib