Matplotlib 3D-Plot: Wie der übermäßige Leerraum loswerden?

Wenn ich in Matplotlib eine 3D-Zeichnung mache:

from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
ax = fig.gca(projection='3d')

x_labels = [10,20,30]
x = [1,2,3,4]
y = [3,1,5,1]
legend = False

for label in x_labels:
    x_3d = label*np.ones_like(x)
    ax.plot(x_3d, x, y, color='black', label='GMM')
    if legend == False:
        ax.legend()
        legend = True

ax.set_zlabel('test')

Es wird produzieren:

Die linke Seite weist einen zu großen Leerraum auf. Ich möchte wissen, ob es möglich ist, es loszuwerden?

Antworten auf die Frage(2)

Ihre Antwort auf die Frage