def get_dasharray(obj):
 if (obj.__dict__.get('_dashSeq') is not None):
  return ','.join(map(str, obj._dashSeq))
 else:
  ls = obj.get_linestyle()
  dasharray = LINESTYLES.get(ls, 'not found')
  if (dasharray == 'not found'):
   warnings.warn("line style '{0}' not understood: defaulting to solid line.".format(ls))
   dasharray = LINESTYLES['solid']
  return dasharray

def get_dasharray ( obj ) : if ( obj . __dict__ . get ( '_dashSeq' ) is not None ) : return ',' . join ( map ( str , obj . _dashSeq ) ) else : ls = obj . get_linestyle ( ) dasharray = LINESTYLES . get ( ls , 'not found' ) if ( dasharray == 'not found' ) : warnings . warn ( "line style '{0}' not understood: defaulting to solid line." . format ( ls ) ) dasharray = LINESTYLES [ 'solid' ] return dasharray
get an svg dash array for the given matplotlib linestyle parameters obj : matplotlib object the matplotlib line or path object .