clean up graph legend