Updating plotting functions.