fig2data
-
emlib.matplotting.fig2data(fig)[source]
Convert a Matplotlib figure to a 4D numpy array with RGBA channels
- Parameters:
fig (Figure) – a matplotlib figure
- Return type:
np.ndarray
- Returns:
a numpy 3D array of RGBA values
Styled using the Piccolo Theme