This has been fixed and will be released in the upcoming Matplotlib v3.9.0, so that manually setting 3D axis limits will now set the limits exactly without extra padding (see [pull request #25272][1]).
If you prefer the original behavior, then setting the following config will change it back: `plt.rcParams['axes3d.automargin'] = True`.
[1]: https://github.com/matplotlib/matplotlib/pull/25272
This has been fixed and will be released in the upcoming Matplotlib v3.9.0, so that manually setting 3D axis limits will now set the limits exactly without extra padding (see [pull request #25272][1]).
If you prefer the original behavior, then setting the following config will change it back: `plt.rcParams['axes3d.automargin'] = True`.
[1]: https://github.com/matplotlib/matplotlib/pull/25272