Answers for "3d plot library 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

plot 3d python

fig = plt.figure()
ax = plt.axes(projection='3d')
Posted by: Guest on June-29-2021

Python Answers by Framework

Browse Popular Code Answers by Language