updated covariance plotting functions