@@ -2133,7 +2133,7 @@ def fill_between(self, x1, y1, z1, x2, y2, z2, *,
21332133
21342134 polyc = art3d .Poly3DCollection (polys , facecolors = facecolors , shade = shade ,
21352135 axlim_clip = axlim_clip , ** kwargs )
2136- self .add_collection (polyc )
2136+ self .add_collection (polyc , autolim = "_datalim_only" )
21372137
21382138 self .auto_scale_xyz ([x1 , x2 ], [y1 , y2 ], [z1 , z2 ], had_data )
21392139 return polyc
@@ -2332,7 +2332,7 @@ def plot_surface(self, X, Y, Z, *, norm=None, vmin=None,
23322332 polys , facecolors = color , shade = shade , lightsource = lightsource ,
23332333 axlim_clip = axlim_clip , ** kwargs )
23342334
2335- self .add_collection (polyc )
2335+ self .add_collection (polyc , autolim = "_datalim_only" )
23362336 self .auto_scale_xyz (X , Y , Z , had_data )
23372337
23382338 return polyc
@@ -2458,7 +2458,7 @@ def plot_wireframe(self, X, Y, Z, *, axlim_clip=False, **kwargs):
24582458
24592459 lines = list (row_lines ) + list (col_lines )
24602460 linec = art3d .Line3DCollection (lines , axlim_clip = axlim_clip , ** kwargs )
2461- self .add_collection (linec )
2461+ self .add_collection (linec , autolim = "_datalim_only" )
24622462
24632463 return linec
24642464
@@ -2559,7 +2559,7 @@ def plot_trisurf(self, *args, color=None, norm=None, vmin=None, vmax=None,
25592559 verts , * args , shade = shade , lightsource = lightsource ,
25602560 facecolors = color , axlim_clip = axlim_clip , ** kwargs )
25612561
2562- self .add_collection (polyc )
2562+ self .add_collection (polyc , autolim = "_datalim_only" )
25632563 self .auto_scale_xyz (tri .x , tri .y , z , had_data )
25642564
25652565 return polyc
@@ -2901,7 +2901,7 @@ def add_collection3d(self, col, zs=0, zdir='z', autolim=True, *,
29012901 # Currently unable to do so due to issues with Patch3DCollection
29022902 # See https://github.com/matplotlib/matplotlib/issues/14298 for details
29032903
2904- collection = super ().add_collection (col )
2904+ collection = super ().add_collection (col , autolim = "_datalim_only" )
29052905 return collection
29062906
29072907 @_preprocess_data (replace_names = ["xs" , "ys" , "zs" , "s" ,
@@ -3231,7 +3231,7 @@ def bar3d(self, x, y, z, dx, dy, dz, color=None,
32313231 lightsource = lightsource ,
32323232 axlim_clip = axlim_clip ,
32333233 * args , ** kwargs )
3234- self .add_collection (col )
3234+ self .add_collection (col , autolim = "_datalim_only" )
32353235
32363236 self .auto_scale_xyz ((minx , maxx ), (miny , maxy ), (minz , maxz ), had_data )
32373237
@@ -3328,7 +3328,7 @@ def calc_arrows(UVW):
33283328 if any (len (v ) == 0 for v in input_args ):
33293329 # No quivers, so just make an empty collection and return early
33303330 linec = art3d .Line3DCollection ([], ** kwargs )
3331- self .add_collection (linec )
3331+ self .add_collection (linec , autolim = "_datalim_only" )
33323332 return linec
33333333
33343334 shaft_dt = np .array ([0. , length ], dtype = float )
@@ -3366,7 +3366,7 @@ def calc_arrows(UVW):
33663366 lines = []
33673367
33683368 linec = art3d .Line3DCollection (lines , axlim_clip = axlim_clip , ** kwargs )
3369- self .add_collection (linec )
3369+ self .add_collection (linec , autolim = "_datalim_only" )
33703370
33713371 self .auto_scale_xyz (XYZ [:, 0 ], XYZ [:, 1 ], XYZ [:, 2 ], had_data )
33723372
@@ -3897,7 +3897,7 @@ def _extract_errs(err, data, lomask, himask):
38973897 errline = art3d .Line3DCollection (np .array (coorderr ).T ,
38983898 axlim_clip = axlim_clip ,
38993899 ** eb_lines_style )
3900- self .add_collection (errline )
3900+ self .add_collection (errline , autolim = "_datalim_only" )
39013901 errlines .append (errline )
39023902 coorderrs .append (coorderr )
39033903
@@ -4047,7 +4047,7 @@ def stem(self, x, y, z, *, linefmt='C0-', markerfmt='C0o', basefmt='C3-',
40474047 stemlines = art3d .Line3DCollection (
40484048 lines , linestyles = linestyle , colors = linecolor , label = '_nolegend_' ,
40494049 axlim_clip = axlim_clip )
4050- self .add_collection (stemlines )
4050+ self .add_collection (stemlines , autolim = "_datalim_only" )
40514051 markerline , = self .plot (x , y , z , markerfmt , label = '_nolegend_' )
40524052
40534053 stem_container = StemContainer ((markerline , stemlines , baseline ),
0 commit comments