From cca5161e538e38a78709123802d8fb004107f346 Mon Sep 17 00:00:00 2001 From: Scott Shambaugh Date: Mon, 20 Nov 2023 20:13:18 -0700 Subject: [PATCH] Update 3d axis limits whats new --- doc/users/next_whats_new/3d_axis_limits.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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')