create matplotlib view and delete some files