Bug in mplot3d set_xlim3d, set_ylim3d, set_zlim3d

Hello matplotlib-devs,

I found what I think is a bug. If you run the following code, you’ll see a simple figure with a graph at the position where the x-axis should be.

Unfortunately this is not the case, even if set_xlim3d(0,10) is set, so it should be at the edge of the plot.

The code:

import matplotlib as mpl

from mpl_toolkits.mplot3d import Axes3D

import matplotlib.pyplot as plt

fig = plt.figure()

ax = Axes3D(fig)

x = range(11)

y = [0]*11

z = [0]*11

ax.plot(x, y, z, label=‘X-axis position’)





I attached the figure it produces.

You can also see, that from the edge to the 2 of one of the axis is a longer distance than from 2 to 4 on the same axis.

A way to fix it is highly appreaciated.

Greetings from Berlin