plot 3d python
#import pyplot and Axes3D
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
#plotting a scatter for example
fig = plt.figure()
ax = fig.add_subplot(111,projection = "3d")
ax.scatter(xs = data["x"], ys = data["y"], zs = data["z"])
fig
0
0
fig = plt.figure()
ax = plt.axes(projection='3d')
Thank you!
0
0
3.6
5
from mpl_toolkits import mplot3d
Thank you!
5
0
Are there any code examples left?
New code examples in category Python