Added ability to export plots into new figure.