Can matplotlib plot a 3-dimensional cross sections?

Hi all,

I am still learning matplotlib at the beginning, usually I use Julia not Python.

I want to plot the right figure for the image
Capture d’écran_2022-12-29_17-20-17

Tell me the reference / example that is close to what I want to plot with matplotlib.

With Julia, I am able to create the left figure, not too hard, but the right one is quite difficult. Hopefully matplotlib and Python able to help.