moved create_from_plot