add purity plot