def to_rgba(c, alpha=None):
 if _is_nth_color(c):
  from matplotlib import rcParams
  prop_cycler = rcParams[u'axes.prop_cycle']
  colors = prop_cycler.by_key().get(u'color', [u'k'])
  c = colors[(int(c[1]) % len(colors))]
 try:
  rgba = _colors_full_map.cache[(c, alpha)]
 except (KeyError, TypeError):
  rgba = _to_rgba_no_colorcycle(c, alpha)
  try:
   _colors_full_map.cache[(c, alpha)] = rgba
  except TypeError:
   pass
 return rgba

def to_rgba ( c , alpha = None ) : if _is_nth_color ( c ) : from matplotlib import rcParams prop_cycler = rcParams [ u'axes.prop_cycle' ] colors = prop_cycler . by_key ( ) . get ( u'color' , [ u'k' ] ) c = colors [ ( int ( c [ 1 ] ) % len ( colors ) ) ] try : rgba = _colors_full_map . cache [ ( c , alpha ) ] except ( KeyError , TypeError ) : rgba = _to_rgba_no_colorcycle ( c , alpha ) try : _colors_full_map . cache [ ( c , alpha ) ] = rgba except TypeError : pass return rgba
convert c to an rgba color .