@@ -28,12 +28,6 @@ def _norm_angle(a):
2828 return a
2929
3030
31- @cbook .deprecated ("3.1" )
32- def norm_angle (a ):
33- """Return the given angle normalized to -180 < *a* <= 180 degrees."""
34- return _norm_angle (a )
35-
36-
3731def _norm_text_angle (a ):
3832 """Return the given angle normalized to -90 < *a* <= 90 degrees."""
3933 a = (a + 180 ) % 180
@@ -42,12 +36,6 @@ def _norm_text_angle(a):
4236 return a
4337
4438
45- @cbook .deprecated ("3.1" )
46- def norm_text_angle (a ):
47- """Return the given angle normalized to -90 < *a* <= 90 degrees."""
48- return _norm_text_angle (a )
49-
50-
5139def get_dir_vector (zdir ):
5240 """
5341 Return a direction vector.
@@ -222,12 +210,6 @@ def _path_to_3d_segment(path, zs=0, zdir='z'):
222210 return seg3d
223211
224212
225- @cbook .deprecated ("3.1" )
226- def path_to_3d_segment (path , zs = 0 , zdir = 'z' ):
227- """Convert a path to a 3D segment."""
228- return _path_to_3d_segment (path , zs = zs , zdir = zdir )
229-
230-
231213def _paths_to_3d_segments (paths , zs = 0 , zdir = 'z' ):
232214 """Convert paths from a collection object to 3D segments."""
233215
@@ -237,12 +219,6 @@ def _paths_to_3d_segments(paths, zs=0, zdir='z'):
237219 return segs
238220
239221
240- @cbook .deprecated ("3.1" )
241- def paths_to_3d_segments (paths , zs = 0 , zdir = 'z' ):
242- """Convert paths from a collection object to 3D segments."""
243- return _paths_to_3d_segments (paths , zs = zs , zdir = zdir )
244-
245-
246222def _path_to_3d_segment_with_codes (path , zs = 0 , zdir = 'z' ):
247223 """Convert a path to a 3D segment with path codes."""
248224
@@ -258,12 +234,6 @@ def _path_to_3d_segment_with_codes(path, zs=0, zdir='z'):
258234 return seg3d , list (codes )
259235
260236
261- @cbook .deprecated ("3.1" )
262- def path_to_3d_segment_with_codes (path , zs = 0 , zdir = 'z' ):
263- """Convert a path to a 3D segment with path codes."""
264- return _path_to_3d_segment_with_codes (path , zs = zs , zdir = zdir )
265-
266-
267237def _paths_to_3d_segments_with_codes (paths , zs = 0 , zdir = 'z' ):
268238 """
269239 Convert paths from a collection object to 3D segments with path codes.
@@ -279,14 +249,6 @@ def _paths_to_3d_segments_with_codes(paths, zs=0, zdir='z'):
279249 return list (segments ), list (codes )
280250
281251
282- @cbook .deprecated ("3.1" )
283- def paths_to_3d_segments_with_codes (paths , zs = 0 , zdir = 'z' ):
284- """
285- Convert paths from a collection object to 3D segments with path codes.
286- """
287- return _paths_to_3d_segments_with_codes (paths , zs = zs , zdir = zdir )
288-
289-
290252class Line3DCollection (LineCollection ):
291253 """
292254 A collection of 3D lines.
@@ -399,12 +361,6 @@ def _get_patch_verts(patch):
399361 return []
400362
401363
402- @cbook .deprecated ("3.1" )
403- def get_patch_verts (patch ):
404- """Return a list of vertices for the path of a patch."""
405- return _get_patch_verts (patch )
406-
407-
408364def patch_2d_to_3d (patch , z = 0 , zdir = 'z' ):
409365 """Convert a Patch to a Patch3D object."""
410366 verts = _get_patch_verts (patch )
@@ -806,12 +762,6 @@ def _get_colors(c, num):
806762 (num , 4 ))
807763
808764
809- @cbook .deprecated ("3.1" )
810- def get_colors (c , num ):
811- """Stretch the color argument to provide the required number *num*."""
812- return _get_colors (c , num )
813-
814-
815765def _zalpha (colors , zs ):
816766 """Modify the alphas of the color list according to depth."""
817767 # FIXME: This only works well if the points for *zs* are well-spaced
@@ -824,9 +774,3 @@ def _zalpha(colors, zs):
824774 sats = 1 - norm (zs ) * 0.7
825775 rgba = np .broadcast_to (mcolors .to_rgba_array (colors ), (len (zs ), 4 ))
826776 return np .column_stack ([rgba [:, :3 ], rgba [:, 3 ] * sats ])
827-
828-
829- @cbook .deprecated ("3.1" )
830- def zalpha (colors , zs ):
831- """Modify the alphas of the color list according to depth."""
832- return _zalpha (colors , zs )
0 commit comments