Fix some bugs. Each plot gets its own figure.