visualize_figure_array_converterfig2np

fig2np

visualize._figure_array_converter.fig2np(fig)

Converts fig-object to pixels as numpy arrays.

This method converts figure objects to numpy arrays. These numpy arrays are RGB pixel matrices.

Parameters:

fig (matplotlib.pyplot.Figure) – The figure object to convert to a numpy array.

Returns:

The numpy array of the figure.

Return type:

numpy.ndarray