Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb3a565

Browse files
authored
Merge pull request #27357 from scottshambaugh/3d_lims_docs
[DOC]: Update 3d axis limits whats new
2 parents e636d00 + cca5161 commit fb3a565

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/users/next_whats_new/3d_axis_limits.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ automatically added.
1212

1313
import matplotlib.pyplot as plt
1414
fig, axs = plt.subplots(1, 2, subplot_kw={'projection': '3d'})
15-
plt.rcParams['axes3d.automargin'] = False # the default in 3.9.0
16-
axs[0].set(xlim=(0, 1), ylim=(0, 1), zlim=(0, 1), title='New Behavior')
15+
1716
plt.rcParams['axes3d.automargin'] = True
18-
axs[1].set(xlim=(0, 1), ylim=(0, 1), zlim=(0, 1), title='Old Behavior')
17+
axs[0].set(xlim=(0, 1), ylim=(0, 1), zlim=(0, 1), title='Old Behavior')
18+
19+
plt.rcParams['axes3d.automargin'] = False # the default in 3.9.0
20+
axs[1].set(xlim=(0, 1), ylim=(0, 1), zlim=(0, 1), title='New Behavior')

0 commit comments

Comments
 (0)