Add initial matplotlib support.

There's still stuff to do (`plot_xy`, matrix display, etc.), but the groundwork is done.