[ Web Proxy ]
URL:
Viewing: https://matplotlib.org/gallery/mplot3d/../showcase/../misc/../../plot_types/3D/plot3d_simple.html [Back]  [Original]

plot(xs, ys, zs) — Matplotlib 3.11.2 documentation
Back to top
Search the docs ...:

plot(xs, ys, zs)#

See plot.

plot3d simple [plot3d simple]
import matplotlib.pyplot as plt
import numpy as np

plt.style.use('_mpl-gallery')

# Make data
n = 100
xs = np.linspace(0, 1, n)
ys = np.sin(xs * 6 * np.pi)
zs = np.cos(xs * 6 * np.pi)

# Plot
fig, ax = plt.subplots(subplot_kw={"projection": "3d"})
ax.plot(xs, ys, zs)

ax.set(xticklabels=[],
       yticklabels=[],
       zticklabels=[])

plt.show()

Gallery generated by Sphinx-Gallery


Web Proxy Viewer  |  New URL  |  Original Page