The method to eliminate the diagonal plot in a pairplot is to use the "diag_kind" parameter and set it to "none" while creating the pairplot. For example:
import seaborn as sns
iris = sns.load_dataset("iris")
sns.pairplot(iris, diag_kind="none")
This will create a pairplot without the diagonal plot.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-06-30 11:43:54 +0000
Seen: 7 times
Last updated: Jun 30