Invisible margins cutting off 3D plot data

I previously asked this question on StackOverflow (here) but it didn’t get any traction so I figured I would ask here as well. My problem is that when making 3D plots in Matplotlib, I am finding that there is an invisible margin which begins to cut off my actual rendered data. This can be seen in the plot below, where the red data is clearly cut off on the right, and the magenta data is beginning to be cut off on the left):

Is it possible to extend these invisible margins? The actual axes on which the plot sits render correctly, but it is the data itself that begins to be cut off. Here is some simple code which will recreate the problem I am having:

import matplotlib.pyplot as plt

fig = plt.figure()
ax = fig.add_subplot(projection='3d')

x_data = range(0,6)
y_Data = [10,10,10,10,10,10]

for i in range(6):, y_Data, zs=i, zdir='y', color="r", alpha=0.8)

ax.dist = 8
ax.elev = 23
ax.azim = 31