clean up plotting