1
1
API Changes for 3.1.0
2
2
=====================
3
3
4
+ :mod: `matplotlib.mlab ` removals
5
+ -------------------------------
6
+
7
+ Lots of code inside the :mod: `matplotlib.mlab ` module which was deprecated
8
+ in Matplotlib 2.2 has been removed. See below for a list:
9
+
10
+ - ``mlab.exp_safe `` (use `numpy.exp ` instead)
11
+ - ``mlab.amap ``
12
+ - ``mlab.logspace `` (use `numpy.logspace ` instead)
13
+ - ``mlab.rms_flat ``
14
+ - ``mlab.l1norm `` (use ``numpy.linalg.norm(a, ord=1) `` instead)
15
+ - ``mlab.l2norm `` (use ``numpy.linalg.norm(a, ord=2) `` instead)
16
+ - ``mlab.norm_flat `` (use ``numpy.linalg.norm(a.flat, ord=2) `` instead)
17
+ - ``mlab.frange `` (use `numpy.arange ` instead)
18
+ - ``mlab.identity `` (use `numpy.identity ` instead)
19
+ - ``mlab.base_repr ``
20
+ - ``mlab.binary_repr ``
21
+ - ``mlab.ispower2 ``
22
+ - ``mlab.log2 `` (use `numpy.log2 ` instead)
23
+ - ``mlab.isvector ``
24
+ - ``mlab.movavg ``
25
+ - ``mlab.safe_isinf `` (use `numpy.isinf ` instead)
26
+ - ``mlab.safe_isnan `` (use `numpy.isnan ` instead)
27
+ - ``mlab.cohere_pairs `` (use `scipy.signal.coherence ` instead)
28
+ - ``mlab.entropy `` (use `scipy.stats.entropy ` instead)
29
+ - ``mlab.normpdf `` (use `scipy.stats.norm.pdf ` instead)
30
+ - ``mlab.find `` (use ``np.nonzero(np.ravel(condition)) `` instead)
31
+ - ``mlab.longest_contiguous_ones ``
32
+ - ``mlab.longest_ones ``
33
+ - ``mlab.PCA ``
34
+ - ``mlab.prctile `` (use `numpy.percentile ` instead)
35
+ - ``mlab.prctile_rank ``
36
+ - ``mlab.center_matrix ``
37
+ - ``mlab.rk4 `` (use `scipy.integrate.ode ` instead)
38
+ - ``mlab.bivariate_normal ``
39
+ - ``mlab.get_xyz_where ``
40
+ - ``mlab.get_sparse_matrix ``
41
+ - ``mlab.dist `` (use `numpy.hypot ` instead)
42
+ - ``mlab.dist_point_to_segment ``
43
+ - ``mlab.griddata `` (use `scipy.interpolate.griddata `)
44
+ - ``mlab.less_simple_linear_interpolation `` (use `numpy.interp `)
45
+ - ``mlab.slopes ``
46
+ - ``mlab.stineman_interp ``
47
+ - ``mlab.segments_intersect ``
48
+ - ``mlab.fftsurr ``
49
+ - ``mlab.offset_line ``
50
+ - ``mlab.quad2cubic ``
51
+ - ``mlab.vector_lengths ``
52
+ - ``mlab.distances_along_curve ``
53
+ - ``mlab.path_length ``
54
+ - ``mlab.cross_from_above ``
55
+ - ``mlab.cross_from_below ``
56
+ - ``mlab.contiguous_regions `` (use `.cbook.contiguous_regions ` instead)
57
+ - ``mlab.is_closed_polygon ``
58
+ - ``mlab.poly_between ``
59
+ - ``mlab.poly_below ``
60
+ - ``mlab.inside_poly ``
61
+ - ``mlab.csv2rec ``
62
+ - ``mlab.rec2csv `` (use `numpy.recarray.tofile ` instead)
63
+ - ``mlab.rec2text `` (use `numpy.recarray.tofile ` instead)
64
+ - ``mlab.rec_summarize ``
65
+ - ``mlab.rec_join ``
66
+ - ``mlab.recs_join ``
67
+ - ``mlab.rec_groupby ``
68
+ - ``mlab.rec_keep_fields ``
69
+ - ``mlab.rec_drop_fields ``
70
+ - ``mlab.rec_append_fields ``
71
+ - ``mlab.csvformat_factory ``
72
+ - ``mlab.get_formatd ``
73
+ - ``mlab.FormatDatetime `` (use `datetime.datetime.strftime ` instead)
74
+ - ``mlab.FormatDate `` (use `datetime.date.strftime ` instead)
75
+ - ``mlab.FormatMillions ``, ``mlab.FormatThousands ``, ``mlab.FormatPercent ``,
76
+ ``mlab.FormatBool ``, ``mlab.FormatInt ``, ``mlab.FormatFloat ``,
77
+ ``mlab.FormatFormatStr ``, ``mlab.FormatString ``, ``mlab.FormatObj ``
78
+ - ``mlab.donothing_callback ``
79
+
80
+ :mod: `matplotlib.pylab ` removals
81
+ --------------------------------
82
+
83
+ Lots of code inside the :mod: `matplotlib.mlab ` module which was deprecated
84
+ in Matplotlib 2.2 has been removed. This means the following functions are
85
+ no longer available in the `matplotlib.pylab ` module:
86
+
87
+ - ``amap ``
88
+ - ``base_repr ``
89
+ - ``binary_repr ``
90
+ - ``bivariate_normal ``
91
+ - ``center_matrix ``
92
+ - ``csv2rec `` (use `numpy.recarray.tofile ` instead)
93
+ - ``dist `` (use `numpy.hypot ` instead)
94
+ - ``dist_point_to_segment ``
95
+ - ``distances_along_curve ``
96
+ - ``entropy `` (use `scipy.stats.entropy ` instead)
97
+ - ``exp_safe `` (use `numpy.exp ` instead)
98
+ - ``fftsurr ``
99
+ - ``find `` (use ``np.nonzero(np.ravel(condition)) `` instead)
100
+ - ``frange `` (use `numpy.arange ` instead)
101
+ - ``get_sparse_matrix ``
102
+ - ``get_xyz_where ``
103
+ - ``griddata `` (use `scipy.interpolate.griddata ` instead)
104
+ - ``identity `` (use `numpy.identity ` instead)
105
+ - ``inside_poly ``
106
+ - ``is_closed_polygon ``
107
+ - ``ispower2 ``
108
+ - ``isvector ``
109
+ - ``l1norm `` (use ``numpy.linalg.norm(a, ord=1) `` instead)
110
+ - ``l2norm `` (use ``numpy.linalg.norm(a, ord=2) `` instead)
111
+ - ``log2 `` (use `numpy.log2 ` instead)
112
+ - ``longest_contiguous_ones ``
113
+ - ``longest_ones ``
114
+ - ``movavg ``
115
+ - ``norm_flat `` (use ``numpy.linalg.norm(a.flat, ord=2) `` instead)
116
+ - ``normpdf `` (use `scipy.stats.norm.pdf ` instead)
117
+ - ``path_length ``
118
+ - ``poly_below ``
119
+ - ``poly_between ``
120
+ - ``prctile `` (use `numpy.percentile ` instead)
121
+ - ``prctile_rank ``
122
+ - ``rec2csv `` (use `numpy.recarray.tofile ` instead)
123
+ - ``rec_append_fields ``
124
+ - ``rec_drop_fields ``
125
+ - ``rec_join ``
126
+ - ``rk4 `` (use `scipy.integrate.ode ` instead)
127
+ - ``rms_flat ``
128
+ - ``segments_intersect ``
129
+ - ``slopes ``
130
+ - ``stineman_interp ``
131
+ - ``vector_lengths ``
132
+
4
133
mplot3d
5
134
-------
6
135
@@ -677,82 +806,6 @@ Previously, when a weight string was passed to `FontManager.score_weight`,
677
806
678
807
`FontManager.score_weight ` now raises an exception on such inputs.
679
808
680
- :mod: `matplotlib.mlab ` removals
681
- -------------------------------
682
-
683
- Lots of code inside the :mod: `matplotlib.mlab ` module which was deprecated
684
- in Matplotlib 2.2 has been removed. See below for a list:
685
-
686
- - ``mlab.exp_safe `` (use `numpy.exp ` instead)
687
- - ``mlab.amap ``
688
- - ``mlab.logspace `` (use `numpy.logspace ` instead)
689
- - ``mlab.rms_flat ``
690
- - ``mlab.l1norm `` (use ``numpy.linalg.norm(a, ord=1) `` instead)
691
- - ``mlab.l2norm `` (use ``numpy.linalg.norm(a, ord=2) `` instead)
692
- - ``mlab.norm_flat `` (use ``numpy.linalg.norm(a.flat, ord=2) `` instead)
693
- - ``mlab.frange `` (use `numpy.arange ` instead)
694
- - ``mlab.identity `` (use `numpy.identity ` instead)
695
- - ``mlab.base_repr ``
696
- - ``mlab.binary_repr ``
697
- - ``mlab.ispower2 ``
698
- - ``mlab.log2 `` (use `numpy.log2 ` instead)
699
- - ``mlab.isvector ``
700
- - ``mlab.movavg ``
701
- - ``mlab.safe_isinf `` (use `numpy.isinf ` instead)
702
- - ``mlab.safe_isnan `` (use `numpy.isnan ` instead)
703
- - ``mlab.cohere_pairs `` (use `scipy.signal.coherence ` instead)
704
- - ``mlab.entropy `` (use `scipy.stats.entropy ` instead)
705
- - ``mlab.normpdf `` (use `scipy.stats.norm.pdf ` instead)
706
- - ``mlab.find `` (use ``np.nonzero(np.ravel(condition)) `` instead)
707
- - ``mlab.longest_contiguous_ones ``
708
- - ``mlab.longest_ones ``
709
- - ``mlab.PCA ``
710
- - ``mlab.prctile `` (use `numpy.percentile ` instead)
711
- - ``mlab.prctile_rank ``
712
- - ``mlab.center_matrix ``
713
- - ``mlab.rk4 `` (use `scipy.integrate.ode ` instead)
714
- - ``mlab.bivariate_normal ``
715
- - ``mlab.get_xyz_where ``
716
- - ``mlab.get_sparse_matrix ``
717
- - ``mlab.dist `` (use `numpy.hypot ` instead)
718
- - ``mlab.dist_point_to_segment ``
719
- - ``mlab.griddata `` (use `scipy.interpolate.griddata `)
720
- - ``mlab.less_simple_linear_interpolation `` (use `numpy.interp `)
721
- - ``mlab.slopes ``
722
- - ``mlab.stineman_interp ``
723
- - ``mlab.segments_intersect ``
724
- - ``mlab.fftsurr ``
725
- - ``mlab.offset_line ``
726
- - ``mlab.quad2cubic ``
727
- - ``mlab.vector_lengths ``
728
- - ``mlab.distances_along_curve ``
729
- - ``mlab.path_length ``
730
- - ``mlab.cross_from_above ``
731
- - ``mlab.cross_from_below ``
732
- - ``mlab.contiguous_regions `` (use `.cbook.contiguous_regions ` instead)
733
- - ``mlab.is_closed_polygon ``
734
- - ``mlab.poly_between ``
735
- - ``mlab.poly_below ``
736
- - ``mlab.inside_poly ``
737
- - ``mlab.csv2rec ``
738
- - ``mlab.rec2csv `` (use `numpy.recarray.tofile ` instead)
739
- - ``mlab.rec2text `` (use `numpy.recarray.tofile ` instead)
740
- - ``mlab.rec_summarize ``
741
- - ``mlab.rec_join ``
742
- - ``mlab.recs_join ``
743
- - ``mlab.rec_groupby ``
744
- - ``mlab.rec_keep_fields ``
745
- - ``mlab.rec_drop_fields ``
746
- - ``mlab.rec_append_fields ``
747
- - ``mlab.csvformat_factory ``
748
- - ``mlab.get_formatd ``
749
- - ``mlab.FormatDatetime `` (use `datetime.datetime.strftime ` instead)
750
- - ``mlab.FormatDate `` (use `datetime.date.strftime ` instead)
751
- - ``mlab.FormatMillions ``, ``mlab.FormatThousands ``, ``mlab.FormatPercent ``,
752
- ``mlab.FormatBool ``, ``mlab.FormatInt ``, ``mlab.FormatFloat ``,
753
- ``mlab.FormatFormatStr ``, ``mlab.FormatString ``, ``mlab.FormatObj ``
754
- - ``mlab.donothing_callback ``
755
-
756
809
``Cn `` colors now support ``n>=10 ``
757
810
-----------------------------------
758
811
@@ -1000,59 +1053,6 @@ are now keyword-only. The goal is to avoid accidentally setting the "message"
1000
1053
argument when the "name" (or "alternative") argument was intended, as this has
1001
1054
repeatedly occurred in the past.
1002
1055
1003
- :mod: `matplotlib.pylab ` removals
1004
- --------------------------------
1005
-
1006
- Lots of code inside the :mod: `matplotlib.mlab ` module which was deprecated
1007
- in Matplotlib 2.2 has been removed. This means the following functions are
1008
- no longer available in the `matplotlib.pylab ` module:
1009
-
1010
- - ``amap ``
1011
- - ``base_repr ``
1012
- - ``binary_repr ``
1013
- - ``bivariate_normal ``
1014
- - ``center_matrix ``
1015
- - ``csv2rec `` (use `numpy.recarray.tofile ` instead)
1016
- - ``dist `` (use `numpy.hypot ` instead)
1017
- - ``dist_point_to_segment ``
1018
- - ``distances_along_curve ``
1019
- - ``entropy `` (use `scipy.stats.entropy ` instead)
1020
- - ``exp_safe `` (use `numpy.exp ` instead)
1021
- - ``fftsurr ``
1022
- - ``find `` (use ``np.nonzero(np.ravel(condition)) `` instead)
1023
- - ``frange `` (use `numpy.arange ` instead)
1024
- - ``get_sparse_matrix ``
1025
- - ``get_xyz_where ``
1026
- - ``griddata `` (use `scipy.interpolate.griddata ` instead)
1027
- - ``identity `` (use `numpy.identity ` instead)
1028
- - ``inside_poly ``
1029
- - ``is_closed_polygon ``
1030
- - ``ispower2 ``
1031
- - ``isvector ``
1032
- - ``l1norm `` (use ``numpy.linalg.norm(a, ord=1) `` instead)
1033
- - ``l2norm `` (use ``numpy.linalg.norm(a, ord=2) `` instead)
1034
- - ``log2 `` (use `numpy.log2 ` instead)
1035
- - ``longest_contiguous_ones ``
1036
- - ``longest_ones ``
1037
- - ``movavg ``
1038
- - ``norm_flat `` (use ``numpy.linalg.norm(a.flat, ord=2) `` instead)
1039
- - ``normpdf `` (use `scipy.stats.norm.pdf ` instead)
1040
- - ``path_length ``
1041
- - ``poly_below ``
1042
- - ``poly_between ``
1043
- - ``prctile `` (use `numpy.percentile ` instead)
1044
- - ``prctile_rank ``
1045
- - ``rec2csv `` (use `numpy.recarray.tofile ` instead)
1046
- - ``rec_append_fields ``
1047
- - ``rec_drop_fields ``
1048
- - ``rec_join ``
1049
- - ``rk4 `` (use `scipy.integrate.ode ` instead)
1050
- - ``rms_flat ``
1051
- - ``segments_intersect ``
1052
- - ``slopes ``
1053
- - ``stineman_interp ``
1054
- - ``vector_lengths ``
1055
-
1056
1056
Autoscaling changes
1057
1057
-------------------
1058
1058
0 commit comments