diff --git a/doc/users/next_whats_new/3d_axis_limits.rst b/doc/users/next_whats_new/3d_axis_limits.rst index 7e7d6b2e5133..b460cfdb4f73 100644 --- a/doc/users/next_whats_new/3d_axis_limits.rst +++ b/doc/users/next_whats_new/3d_axis_limits.rst @@ -12,7 +12,9 @@ automatically added. import matplotlib.pyplot as plt fig, axs = plt.subplots(1, 2, subplot_kw={'projection': '3d'}) - plt.rcParams['axes3d.automargin'] = False # the default in 3.9.0 - axs[0].set(xlim=(0, 1), ylim=(0, 1), zlim=(0, 1), title='New Behavior') + plt.rcParams['axes3d.automargin'] = True - axs[1].set(xlim=(0, 1), ylim=(0, 1), zlim=(0, 1), title='Old Behavior') + axs[0].set(xlim=(0, 1), ylim=(0, 1), zlim=(0, 1), title='Old Behavior') + + plt.rcParams['axes3d.automargin'] = False # the default in 3.9.0 + axs[1].set(xlim=(0, 1), ylim=(0, 1), zlim=(0, 1), title='New Behavior')