PsychoPy-Matplotlib

Matplotlib does not have a (documented) way of exporting an image other than writing to file or screen.
PsychoPy does not have a documented way of importing images other than reading from file. The following
example shows how to use the undocumented features in both libraries.

A matplotlib graph is made, written to file and shown in a PsychoPy ImageStim. Then the graph is updated
and send directly to the ImageStim object (without writing to file) to replace the old image. On the
labcomputer this runs smoothly at 60Hz. This is a video of the demo. Note that the video is not as smooth as the demo.