Fill between 3D lines#

Demonstrate how to fill the space between 3D lines with surfaces. Here we create a sort of "lampshade" shape.

import matplotlib.pyplot as plt
import numpy as np

N = 50
N)

theta)
theta)
theta)

theta)
theta)
z2 = 2  # Note that scalar values work in addition to length N arrays

fig = plt.figure()
ax = fig.add_subplot(projection='3d')
ax.fill_between(x2, z2, alpha=0.5, edgecolor='k')

plt.show()
fillbetween3d

Tags: plot-type: 3D plot-type: fill_between level: beginner

Total running time of the script: (0 minutes 1.049 seconds)

Gallery generated by Sphinx-Gallery