@@ -96,14 +96,14 @@ def __init__(
96
96
does not produce the desired result. Note however, that a manual
97
97
zorder will only be correct for a limited view angle. If the figure
98
98
is rotated by the user, it will look wrong from certain angles.
99
- auto_add_to_figure : bool, default: True
99
+ auto_add_to_figure : bool, default: False
100
100
Prior to Matplotlib 3.4 Axes3D would add themselves
101
101
to their host Figure on init. Other Axes class do not
102
102
do this.
103
103
104
- This behavior is deprecated in 3.4, the default will
105
- change to False in 3.5 . The keyword will be undocumented
106
- and a non-False value will be an error in 3.6 .
104
+ This behavior is deprecated in 3.4, the default is
105
+ changed to False in 3.6 . The keyword will be undocumented
106
+ and a non-False value will be an error in 3.7 .
107
107
focal_length : float, default: None
108
108
For a projection type of 'persp', the focal length of the virtual
109
109
camera. Must be > 0. If None, defaults to 1.
@@ -142,7 +142,7 @@ def __init__(
142
142
self ._shared_axes ["z" ].join (self , sharez )
143
143
self ._adjustable = 'datalim'
144
144
145
- auto_add_to_figure = kwargs .pop ('auto_add_to_figure' , True )
145
+ auto_add_to_figure = kwargs .pop ('auto_add_to_figure' , False )
146
146
147
147
super ().__init__ (
148
148
fig , rect , frameon = True , box_aspect = box_aspect , * args , ** kwargs
@@ -178,12 +178,12 @@ def __init__(
178
178
179
179
if auto_add_to_figure :
180
180
_api .warn_deprecated (
181
- "3.4" , removal = "3.6 " , message = "Axes3D(fig) adding itself "
181
+ "3.4" , removal = "3.7 " , message = "Axes3D(fig) adding itself "
182
182
"to the figure is deprecated since %(since)s. "
183
183
"Pass the keyword argument auto_add_to_figure=False "
184
184
"and use fig.add_axes(ax) to suppress this warning. "
185
185
"The default value of auto_add_to_figure will change to "
186
- "False in mpl3.5 and True values will "
186
+ "False in mpl3.6 and True values will "
187
187
"no longer work %(removal)s. This is consistent with "
188
188
"other Axes classes." )
189
189
fig .add_axes (self )
0 commit comments