mpl_to_qt_color¶
- glue.utils.qt.mpl_to_qt_color(color, alpha=None)¶
Convert a matplotlib color string into a Qt QColor object
- Parameters
- colorstr
A color specification that matplotlib understands
- alphafloat
Optional opacity. Float in range [0,1]
- Returns
- qcolor
QColor
A QColor object representing the converted color
- qcolor