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

Skip to content

Commit 3987f68

Browse files
committed
Remove mlab from pylab
1 parent 1d017bd commit 3987f68

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

lib/matplotlib/pylab.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,10 @@
129129
130130
cumprod - the cumulative product along a dimension
131131
cumsum - the cumulative sum along a dimension
132-
detrend - remove the mean or besdt fit line from an array
133132
diag - the k-th diagonal of matrix
134133
diff - the n-th differnce of an array
135134
eig - the eigenvalues and eigen vectors of v
136135
eye - a matrix where the k-th diagonal is ones, else zero
137-
find - return the indices where a condition is nonzero
138136
fliplr - flip the rows of a matrix up/down
139137
flipud - flip the columns of a matrix left/right
140138
linspace - a linear spaced vector of N values from min to max inclusive
@@ -154,7 +152,6 @@
154152
155153
_Probability
156154
157-
normpdf - The Gaussian probability density function
158155
rand - random numbers from the uniform distribution
159156
randn - random numbers from the normal distribution
160157
@@ -239,21 +236,7 @@
239236
# bring all the symbols in so folks can import them from
240237
# pylab in one fell swoop
241238

242-
## We are still importing too many things from mlab; more cleanup is needed.
243-
244-
from matplotlib.mlab import (
245-
amap, base_repr, binary_repr, bivariate_normal, center_matrix, csv2rec,
246-
demean, detrend, detrend_linear, detrend_mean, detrend_none, dist,
247-
dist_point_to_segment, distances_along_curve, entropy, exp_safe,
248-
fftsurr, find, frange, get_sparse_matrix, get_xyz_where, griddata,
249-
identity, inside_poly, is_closed_polygon, ispower2, isvector, l1norm,
250-
l2norm, log2, longest_contiguous_ones, longest_ones, movavg, norm_flat,
251-
normpdf, path_length, poly_below, poly_between, prctile, prctile_rank,
252-
rec2csv, rec_append_fields, rec_drop_fields, rec_join, rk4, rms_flat,
253-
segments_intersect, slopes, stineman_interp, vector_lengths,
254-
window_hanning, window_none)
255-
256-
from matplotlib import cbook, mlab, pyplot as plt
239+
from matplotlib import cbook, pyplot as plt
257240
from matplotlib.pyplot import *
258241

259242
from numpy import *

0 commit comments

Comments
 (0)