update some plotting functions