title: Matplotlib: save plot to numpy array
body: <p>In Python and Matplotlib, it is easy to either display the plot as a popup window or save the plot as a PNG file. How can I instead save the plot to a numpy array in RGB format?</p>