Plotting helpers

Utility functions for rendering matplotlib figures to numpy arrays.

ecgan.utils.plotting.matplotlib_render_to_array(fig)[source]

Return a numpy array representing the plot of a matplotlib figure.

A bit hacky.

Return type

ndarray