clear graphs before drawing