@@ -177,6 +177,7 @@ def path_to_3d_segment(path, zs=0, zdir='z'):
177
177
seg3d = juggle_axes_vec (seg3d , zdir )
178
178
return seg3d .T
179
179
180
+
180
181
def paths_to_3d_segments (paths , zs = 0 , zdir = 'z' ):
181
182
"""Convert paths from a collection object to 3D segments."""
182
183
@@ -190,7 +191,7 @@ def paths_to_3d_segments(paths, zs=0, zdir='z'):
190
191
191
192
192
193
def path_to_3d_segment_with_codes (path , zs = 0 , zdir = 'z' ):
193
- ''' Convert a path to a 3D segment with path codes.'''
194
+ """ Convert a path to a 3D segment with path codes."""
194
195
# Pre allocate memory
195
196
# XXX should we consider a 4d array?
196
197
seg3d = np .ones ((3 , len (path )))
@@ -233,9 +234,9 @@ def set_sort_zpos(self, val):
233
234
self .stale = True
234
235
235
236
def set_segments (self , segments ):
236
- '''
237
+ """
237
238
Set 3D segments
238
- '''
239
+ """
239
240
self ._seg_sizes = [len (c ) for c in segments ]
240
241
self ._segments3d = []
241
242
if len (segments ) > 0 :
@@ -391,7 +392,7 @@ def __init__(self, *args, zs=0, zdir='z', depthshade=True, **kwargs):
391
392
super ().__init__ (* args , ** kwargs )
392
393
self .set_3d_properties (zs , zdir )
393
394
394
- def set_sort_zpos (self , val ):
395
+ def set_sort_zpos (self ,val ):
395
396
"""Set the position to use for z-sorting."""
396
397
self ._sort_zpos = val
397
398
self .stale = True
@@ -798,11 +799,6 @@ def rotate_axes_vec(xyz, zdir):
798
799
return xyz
799
800
800
801
801
- @cbook .deprecated ('2.0' , alternative = 'matplotlib.colors.is_color_like' )
802
- def iscolor (c ):
803
- return mcolors .is_color_like (c )
804
-
805
-
806
802
def get_colors (c , num ):
807
803
"""Stretch the color argument to provide the required number *num*."""
808
804
return np .broadcast_to (
0 commit comments