parameters: (color, factor)
return_statement: return color
docstring: Makes a color whiter.
  
    Args:
      color: the color to whiten, in any of the formats supported
          by matplotlib.colors.
      factor: the amount by which to whiten the color.
          (0=do not change the color, 1=make it completely white)
docstring_summary: Makes a color whiter.
docstring_tokens: Makes a color whiter .
function: def WhitenColor(color, factor):
    """Makes a color whiter.
  
    Args:
      color: the color to whiten, in any of the formats supported
          by matplotlib.colors.
      factor: the amount by which to whiten the color.
          (0=do not change the color, 1=make it completely white)
    """
    assert(factor >= 0 and factor <= 1)
    if isinstance(color, (int, long, float)):
      color = str(color)
    color = colors.colorConverter.to_rgb(color)
    color = map(lambda x: 1 - ((1 - x) * (1 - factor)), color)
    color = colors.rgb2hex(color)
    return color
function_tokens: def WhitenColor ( color , factor ) : assert ( factor >= 0 and factor <= 1 ) if isinstance ( color , ( int , long , float ) ) : color = str ( color ) color = colors . colorConverter . to_rgb ( color ) color = map ( lambda x : 1 - ( ( 1 - x ) * ( 1 - factor ) ) , color ) color = colors . rgb2hex ( color ) return color