@@ -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.
@@ -216,12 +204,6 @@ def _path_to_3d_segment(path, zs=0, zdir='z'):
216204 return seg3d
217205
218206
219- @cbook .deprecated ("3.1" )
220- def path_to_3d_segment (path , zs = 0 , zdir = 'z' ):
221- """Convert a path to a 3D segment."""
222- return _path_to_3d_segment (path , zs = zs , zdir = zdir )
223-
224-
225207def _paths_to_3d_segments (paths , zs = 0 , zdir = 'z' ):
226208 """Convert paths from a collection object to 3D segments."""
227209
@@ -231,12 +213,6 @@ def _paths_to_3d_segments(paths, zs=0, zdir='z'):
231213 return segs
232214
233215
234- @cbook .deprecated ("3.1" )
235- def paths_to_3d_segments (paths , zs = 0 , zdir = 'z' ):
236- """Convert paths from a collection object to 3D segments."""
237- return _paths_to_3d_segments (paths , zs = zs , zdir = zdir )
238-
239-
240216def _path_to_3d_segment_with_codes (path , zs = 0 , zdir = 'z' ):
241217 """Convert a path to a 3D segment with path codes."""
242218
@@ -252,12 +228,6 @@ def _path_to_3d_segment_with_codes(path, zs=0, zdir='z'):
252228 return seg3d , list (codes )
253229
254230
255- @cbook .deprecated ("3.1" )
256- def path_to_3d_segment_with_codes (path , zs = 0 , zdir = 'z' ):
257- """Convert a path to a 3D segment with path codes."""
258- return _path_to_3d_segment_with_codes (path , zs = zs , zdir = zdir )
259-
260-
261231def _paths_to_3d_segments_with_codes (paths , zs = 0 , zdir = 'z' ):
262232 """
263233 Convert paths from a collection object to 3D segments with path codes.
@@ -273,14 +243,6 @@ def _paths_to_3d_segments_with_codes(paths, zs=0, zdir='z'):
273243 return list (segments ), list (codes )
274244
275245
276- @cbook .deprecated ("3.1" )
277- def paths_to_3d_segments_with_codes (paths , zs = 0 , zdir = 'z' ):
278- """
279- Convert paths from a collection object to 3D segments with path codes.
280- """
281- return _paths_to_3d_segments_with_codes (paths , zs = zs , zdir = zdir )
282-
283-
284246class Line3DCollection (LineCollection ):
285247 """
286248 A collection of 3D lines.
@@ -393,12 +355,6 @@ def _get_patch_verts(patch):
393355 return []
394356
395357
396- @cbook .deprecated ("3.1" )
397- def get_patch_verts (patch ):
398- """Return a list of vertices for the path of a patch."""
399- return _get_patch_verts (patch )
400-
401-
402358def patch_2d_to_3d (patch , z = 0 , zdir = 'z' ):
403359 """Convert a Patch to a Patch3D object."""
404360 verts = _get_patch_verts (patch )
@@ -800,12 +756,6 @@ def _get_colors(c, num):
800756 (num , 4 ))
801757
802758
803- @cbook .deprecated ("3.1" )
804- def get_colors (c , num ):
805- """Stretch the color argument to provide the required number *num*."""
806- return _get_colors (c , num )
807-
808-
809759def _zalpha (colors , zs ):
810760 """Modify the alphas of the color list according to depth."""
811761 # FIXME: This only works well if the points for *zs* are well-spaced
@@ -818,9 +768,3 @@ def _zalpha(colors, zs):
818768 sats = 1 - norm (zs ) * 0.7
819769 rgba = np .broadcast_to (mcolors .to_rgba_array (colors ), (len (zs ), 4 ))
820770 return np .column_stack ([rgba [:, :3 ], rgba [:, 3 ] * sats ])
821-
822-
823- @cbook .deprecated ("3.1" )
824- def zalpha (colors , zs ):
825- """Modify the alphas of the color list according to depth."""
826- return _zalpha (colors , zs )
0 commit comments