reset plot functino
retain frequencies