- filter plot and diagram almost finished