mpl_to_qt4_color

glue.utils.qt.mpl_to_qt4_color(color, alpha=1.0)[source]

Convert a matplotlib color stirng into a Qt QColor object

Parameters:

color : str

A color specification that matplotlib understands

alpha : float

Optional opacity. Float in range [0,1]

Returns:

qcolor : QColor

A QColor object representing the converted color