Answers for "how to plot 3d graph python"

2

3d plots in 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
Posted by: Guest on August-11-2021
0

3d graph python

plot_trisurf(X, Y, ...)
plot_trisurf(X, Y, triangles, ...)
plot_trisurf(X, Y, triangles=triangles, ...)
Posted by: Guest on April-30-2021

Python Answers by Framework

Browse Popular Code Answers by Language