More work. Basic plotting works now.