mplot3d: Hiding a line plot `plot()` under a `plot_surface()`
问题 Edit: the problem I describe here no longer shows with current versions of matplotlib (2.1.1, edit made on 10 Sep 2019): most certainly a bug that has been fixed since then I want to have a line plot (drawn with Axis.plot() ) that is partially covered by the surface generated by Axis.plot_surface() . I wrote the following script: import numpy as np from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D resolution = 100 ax = plt.gca(projection="3d") x, y = np.meshgrid( np