|
| 1 | +Removal of deprecated :mod:`matplotlib.mlab` code |
| 2 | +------------------------------------------------- |
| 3 | + |
| 4 | +Lots of code inside the :mod:`matplotlib.mlab` module which was deprecated |
| 5 | +in Matplotlib 2.2 has been removed. See below for a list: |
| 6 | + |
| 7 | +- ``mlab.exp_safe`` (use `numpy.exp` instead) |
| 8 | +- ``mlab.amap`` |
| 9 | +- ``mlab.logspace`` (use `numpy.logspace` instead) |
| 10 | +- ``mlab.rms_flat`` |
| 11 | +- ``mlab.l1norm`` (use ``numpy.linalg.norm(a, ord=1)`` instead) |
| 12 | +- ``mlab.l2norm`` (use ``numpy.linalg.norm(a, ord=2)`` instead) |
| 13 | +- ``mlab.norm_flat`` (use ``numpy.linalg.norm(a.flat, ord=2)`` instead) |
| 14 | +- ``mlab.frange`` (use `numpy.arange` instead) |
| 15 | +- ``mlab.identity`` (use `numpy.identity` instead) |
| 16 | +- ``mlab.base_repr`` |
| 17 | +- ``mlab.binary_repr`` |
| 18 | +- ``mlab.ispower2`` |
| 19 | +- ``mlab.log2`` (use `numpy.log2` instead) |
| 20 | +- ``mlab.isvector`` |
| 21 | +- ``mlab.movavg`` |
| 22 | +- ``mlab.safe_isinf`` (use `numpy.isinf` instead) |
| 23 | +- ``mlab.safe_isnan`` (use `numpy.isnan` instead) |
| 24 | +- ``mlab.cohere_pairs`` (use `scipy.signal.coherence` instead) |
| 25 | +- ``mlab.entropy`` (use `scipy.stats.entropy` instead) |
| 26 | +- ``mlab.normpdf`` (use `scipy.stats.norm.pdf` instead) |
| 27 | +- ``mlab.find`` (use ``np.nonzero(np.ravel(condition))`` instead) |
| 28 | +- ``mlab.longest_contiguous_ones`` |
| 29 | +- ``mlab.longest_ones`` |
| 30 | +- ``mlab.PCA`` |
| 31 | +- ``mlab.prctile`` (use `numpy.percentile` instead) |
| 32 | +- ``mlab.prctile_rank`` |
| 33 | +- ``mlab.center_matrix`` |
| 34 | +- ``mlab.rk4`` (use `scipy.integrate.ode` instead) |
| 35 | +- ``mlab.bivariate_normal`` |
| 36 | +- ``mlab.get_xyz_where`` |
| 37 | +- ``mlab.get_sparse_matrix`` |
| 38 | +- ``mlab.dist`` (use `numpy.hypot` instead) |
| 39 | +- ``mlab.dist_point_to_segment`` |
| 40 | +- ``mlab.griddata`` (use `scipy.interpolate.griddata`) |
| 41 | +- ``mlab.less_simple_linear_interpolation`` (use `numpy.interp`) |
| 42 | +- ``mlab.slopes`` |
| 43 | +- ``mlab.stineman_interp`` |
| 44 | +- ``mlab.segments_intersect`` |
| 45 | +- ``mlab.fftsurr`` |
| 46 | +- ``mlab.offset_line`` |
| 47 | +- ``mlab.quad2cubic`` |
| 48 | +- ``mlab.vector_lengths`` |
| 49 | +- ``mlab.distances_along_curve`` |
| 50 | +- ``mlab.path_length`` |
| 51 | +- ``mlab.cross_from_above`` |
| 52 | +- ``mlab.cross_from_below`` |
| 53 | +- ``mlab.contiguous_regions`` (use `.cbook.contiguous_regions` instead) |
| 54 | +- ``mlab.is_closed_polygon`` |
| 55 | +- ``mlab.poly_between`` |
| 56 | +- ``mlab.poly_below`` |
| 57 | +- ``mlab.inside_poly`` |
| 58 | +- ``mlab.csv2rec`` |
| 59 | +- ``mlab.rec2csv`` (use `numpy.recarray.tofile` instead) |
| 60 | +- ``mlab.rec2text`` (use `numpy.recarray.tofile` instead) |
| 61 | +- ``mlab.rec_summarize`` |
| 62 | +- ``mlab.rec_join`` |
| 63 | +- ``mlab.recs_join`` |
| 64 | +- ``mlab.rec_groupby`` |
| 65 | +- ``mlab.rec_keep_fields`` |
| 66 | +- ``mlab.rec_drop_fields`` |
| 67 | +- ``mlab.rec_append_fields`` |
| 68 | +- ``mlab.csvformat_factory`` |
| 69 | +- ``mlab.get_formatd`` |
| 70 | +- ``mlab.FormatDatetime`` (use `datetime.datetime.strftime` instead) |
| 71 | +- ``mlab.FormatDate`` (use `datetime.date.strftime` instead) |
| 72 | +- ``mlab.FormatMillions``, ``mlab.FormatThousands``, ``mlab.FormatPercent``, |
| 73 | + ``mlab.FormatBool``, ``mlab.FormatInt``, ``mlab.FormatFloat``, |
| 74 | + ``mlab.FormatFormatStr``, ``mlab.FormatString``, ``mlab.FormatObj`` |
| 75 | +- ``mlab.donothing_callback`` |
0 commit comments