@@ -2460,7 +2460,7 @@ def stem(self, *args, **kwargs):
2460
2460
marker = linemarker , label = "_nolegend_" )
2461
2461
stemlines .append (l )
2462
2462
2463
- baseline , = self .plot ([np .amin (x ), np .amax (x )], [bottom , bottom ],
2463
+ baseline , = self .plot ([np .min (x ), np .max (x )], [bottom , bottom ],
2464
2464
color = basecolor , linestyle = basestyle ,
2465
2465
marker = basemarker , label = "_nolegend_" )
2466
2466
@@ -4228,8 +4228,8 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
4228
4228
if extent is not None :
4229
4229
xmin , xmax , ymin , ymax = extent
4230
4230
else :
4231
- xmin , xmax = (np .amin (x ), np .amax (x )) if len (x ) else (0 , 1 )
4232
- ymin , ymax = (np .amin (y ), np .amax (y )) if len (y ) else (0 , 1 )
4231
+ xmin , xmax = (np .min (x ), np .max (x )) if len (x ) else (0 , 1 )
4232
+ ymin , ymax = (np .min (y ), np .max (y )) if len (y ) else (0 , 1 )
4233
4233
4234
4234
# to avoid issues with singular data, expand the min/max pairs
4235
4235
xmin , xmax = mtrans .nonsingular (xmin , xmax , expander = 0.1 )
@@ -5470,10 +5470,10 @@ def pcolor(self, *args, **kwargs):
5470
5470
5471
5471
self .add_collection (collection , autolim = False )
5472
5472
5473
- minx = np .amin (x )
5474
- maxx = np .amax (x )
5475
- miny = np .amin (y )
5476
- maxy = np .amax (y )
5473
+ minx = np .min (x )
5474
+ maxx = np .max (x )
5475
+ miny = np .min (y )
5476
+ maxy = np .max (y )
5477
5477
collection .sticky_edges .x [:] = [minx , maxx ]
5478
5478
collection .sticky_edges .y [:] = [miny , maxy ]
5479
5479
corners = (minx , miny ), (maxx , maxy )
@@ -5622,10 +5622,10 @@ def pcolormesh(self, *args, **kwargs):
5622
5622
5623
5623
self .add_collection (collection , autolim = False )
5624
5624
5625
- minx = np .amin (X )
5626
- maxx = np .amax (X )
5627
- miny = np .amin (Y )
5628
- maxy = np .amax (Y )
5625
+ minx = np .min (X )
5626
+ maxx = np .max (X )
5627
+ miny = np .min (Y )
5628
+ maxy = np .max (Y )
5629
5629
collection .sticky_edges .x [:] = [minx , maxx ]
5630
5630
collection .sticky_edges .y [:] = [miny , maxy ]
5631
5631
corners = (minx , miny ), (maxx , maxy )
@@ -6386,7 +6386,7 @@ def _normalize_input(inp, ename='input'):
6386
6386
else :
6387
6387
labels = [six .text_type (lab ) for lab in label ]
6388
6388
6389
- for ( patch , lbl ) in zip_longest (patches , labels , fillvalue = None ):
6389
+ for patch , lbl in zip_longest (patches , labels , fillvalue = None ):
6390
6390
if patch :
6391
6391
p = patch [0 ]
6392
6392
p .update (kwargs )
@@ -6724,7 +6724,7 @@ def csd(self, x, y, NFFT=None, Fs=None, Fc=None, detrend=None,
6724
6724
# pxy is complex
6725
6725
freqs += Fc
6726
6726
6727
- line = self .plot (freqs , 10 * np .log10 (np .absolute (pxy )), ** kwargs )
6727
+ line = self .plot (freqs , 10 * np .log10 (np .abs (pxy )), ** kwargs )
6728
6728
self .set_xlabel ('Frequency' )
6729
6729
self .set_ylabel ('Cross Spectrum Magnitude (dB)' )
6730
6730
self .grid (True )
@@ -7227,7 +7227,7 @@ def specgram(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
7227
7227
Z = np .flipud (Z )
7228
7228
7229
7229
if xextent is None :
7230
- xextent = 0 , np .amax (t )
7230
+ xextent = 0 , np .max (t )
7231
7231
xmin , xmax = xextent
7232
7232
freqs += Fc
7233
7233
extent = xmin , xmax , freqs [0 ], freqs [- 1 ]
@@ -7300,7 +7300,7 @@ def spy(self, Z, precision=0, marker=None, markersize=None,
7300
7300
marker = 's'
7301
7301
if marker is None and markersize is None :
7302
7302
Z = np .asarray (Z )
7303
- mask = np .absolute (Z ) > precision
7303
+ mask = np .abs (Z ) > precision
7304
7304
7305
7305
if 'cmap' not in kwargs :
7306
7306
kwargs ['cmap' ] = mcolors .ListedColormap (['w' , 'k' ],
@@ -7316,12 +7316,12 @@ def spy(self, Z, precision=0, marker=None, markersize=None,
7316
7316
y = c .row
7317
7317
x = c .col
7318
7318
else :
7319
- nonzero = np .absolute (c .data ) > precision
7319
+ nonzero = np .abs (c .data ) > precision
7320
7320
y = c .row [nonzero ]
7321
7321
x = c .col [nonzero ]
7322
7322
else :
7323
7323
Z = np .asarray (Z )
7324
- nonzero = np .absolute (Z ) > precision
7324
+ nonzero = np .abs (Z ) > precision
7325
7325
y , x = np .nonzero (nonzero )
7326
7326
if marker is None :
7327
7327
marker = 's'
0 commit comments