@@ -965,7 +965,7 @@ def hlines(self, y, xmin, xmax, colors='k', linestyles='solid',
965
965
for thisxmin , thisxmax , thisy in zip (xmin , xmax , y )]
966
966
coll = mcoll .LineCollection (verts , colors = colors ,
967
967
linestyles = linestyles , label = label )
968
- self .add_collection (coll )
968
+ self .add_collection (coll , autolim = False )
969
969
coll .update (kwargs )
970
970
971
971
if len (y ) > 0 :
@@ -1045,7 +1045,7 @@ def vlines(self, x, ymin, ymax, colors='k', linestyles='solid',
1045
1045
#print 'creating line collection'
1046
1046
coll = mcoll .LineCollection (verts , colors = colors ,
1047
1047
linestyles = linestyles , label = label )
1048
- self .add_collection (coll )
1048
+ self .add_collection (coll , autolim = False )
1049
1049
coll .update (kwargs )
1050
1050
1051
1051
if len (x ) > 0 :
@@ -1210,7 +1210,7 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
1210
1210
linewidth = linewidth ,
1211
1211
color = color ,
1212
1212
linestyle = linestyle )
1213
- self .add_collection (coll )
1213
+ self .add_collection (coll , autolim = False )
1214
1214
coll .update (kwargs )
1215
1215
colls .append (coll )
1216
1216
@@ -3937,7 +3937,7 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
3937
3937
self .autoscale_view (tight = True )
3938
3938
3939
3939
# add the collection last
3940
- self .add_collection (collection )
3940
+ self .add_collection (collection , autolim = False )
3941
3941
if not marginals :
3942
3942
return collection
3943
3943
@@ -3983,7 +3983,7 @@ def coarse_bin(x, y, coarse):
3983
3983
hbar .set_norm (norm )
3984
3984
hbar .set_alpha (alpha )
3985
3985
hbar .update (kwargs )
3986
- self .add_collection (hbar )
3986
+ self .add_collection (hbar , autolim = False )
3987
3987
3988
3988
coarse = np .linspace (ymin , ymax , gridsize )
3989
3989
ycoarse = coarse_bin (yorig , C , coarse )
@@ -4011,7 +4011,7 @@ def coarse_bin(x, y, coarse):
4011
4011
vbar .set_norm (norm )
4012
4012
vbar .set_alpha (alpha )
4013
4013
vbar .update (kwargs )
4014
- self .add_collection (vbar )
4014
+ self .add_collection (vbar , autolim = False )
4015
4015
4016
4016
collection .hbar = hbar
4017
4017
collection .vbar = vbar
@@ -4073,7 +4073,7 @@ def quiver(self, *args, **kw):
4073
4073
self .cla ()
4074
4074
q = mquiver .Quiver (self , * args , ** kw )
4075
4075
4076
- self .add_collection (q , True )
4076
+ self .add_collection (q , autolim = True )
4077
4077
self .autoscale_view ()
4078
4078
return q
4079
4079
quiver .__doc__ = mquiver .Quiver .quiver_doc
@@ -4113,7 +4113,7 @@ def barbs(self, *args, **kw):
4113
4113
if not self ._hold :
4114
4114
self .cla ()
4115
4115
b = mquiver .Barbs (self , * args , ** kw )
4116
- self .add_collection (b )
4116
+ self .add_collection (b , autolim = True )
4117
4117
self .autoscale_view ()
4118
4118
return b
4119
4119
@@ -4301,9 +4301,10 @@ def get_interp_point(ind):
4301
4301
XY2 = np .array ([x [where ], y2 [where ]]).T
4302
4302
self .dataLim .update_from_data_xy (XY1 , self .ignore_existing_data_limits ,
4303
4303
updatex = True , updatey = True )
4304
+ self .ignore_existing_data_limits = False
4304
4305
self .dataLim .update_from_data_xy (XY2 , self .ignore_existing_data_limits ,
4305
4306
updatex = False , updatey = True )
4306
- self .add_collection (collection )
4307
+ self .add_collection (collection , autolim = False )
4307
4308
self .autoscale_view ()
4308
4309
return collection
4309
4310
@@ -4408,10 +4409,10 @@ def fill_betweenx(self, y, x1, x2=0, where=None, **kwargs):
4408
4409
X2Y = np .array ([x2 [where ], y [where ]]).T
4409
4410
self .dataLim .update_from_data_xy (X1Y , self .ignore_existing_data_limits ,
4410
4411
updatex = True , updatey = True )
4411
-
4412
+ self . ignore_existing_data_limits = False
4412
4413
self .dataLim .update_from_data_xy (X2Y , self .ignore_existing_data_limits ,
4413
- updatex = False , updatey = True )
4414
- self .add_collection (collection )
4414
+ updatex = True , updatey = False )
4415
+ self .add_collection (collection , autolim = False )
4415
4416
self .autoscale_view ()
4416
4417
return collection
4417
4418
@@ -4886,7 +4887,7 @@ def pcolor(self, *args, **kwargs):
4886
4887
corners = (minx , miny ), (maxx , maxy )
4887
4888
self .update_datalim (corners )
4888
4889
self .autoscale_view ()
4889
- self .add_collection (collection )
4890
+ self .add_collection (collection , autolim = False )
4890
4891
return collection
4891
4892
4892
4893
@docstring .dedent_interpd
@@ -5032,7 +5033,7 @@ def pcolormesh(self, *args, **kwargs):
5032
5033
corners = (minx , miny ), (maxx , maxy )
5033
5034
self .update_datalim (corners )
5034
5035
self .autoscale_view ()
5035
- self .add_collection (collection )
5036
+ self .add_collection (collection , autolim = False )
5036
5037
return collection
5037
5038
5038
5039
@docstring .dedent_interpd
@@ -5184,7 +5185,7 @@ def pcolorfast(self, *args, **kwargs):
5184
5185
collection .set_array (C )
5185
5186
collection .set_cmap (cmap )
5186
5187
collection .set_norm (norm )
5187
- self .add_collection (collection )
5188
+ self .add_collection (collection , autolim = False )
5188
5189
xl , xr , yb , yt = X .min (), X .max (), Y .min (), Y .max ()
5189
5190
ret = collection
5190
5191
0 commit comments