Matplotlib Save Image As Array, pyplot is a state-based interface to matplotlib.