create_pixmap

create_pixmap(fig: matplotlib.figure.Figure) <MagicMock name='mock.QPixmap' id='140286154219216'>[source]

Creates a QPixmap from a matplotlib Figure.

Parameters:

fig (Figure) – The matplotlib figure.

Returns:

The generated QPixmap, or an empty QPixmap if an error occurs.

Return type:

QPixmap