Created
April 18, 2019 19:10
-
-
Save MLWhiz/8b8014c171aa2bfa2d47f29095478e2e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Create a Pairplot | |
| g = sns.pairplot(iris,hue="species",palette="muted",size=5, | |
| vars=["sepal_width", "sepal_length"],kind='reg',markers=['o','x','+']) | |
| # To change the size of the scatterpoints in graph | |
| g = g.map_offdiag(plt.scatter, s=35,alpha=0.5) | |
| # remove the top and right line in graph | |
| sns.despine() | |
| # Additional line to adjust some appearance issue | |
| plt.subplots_adjust(top=0.9) | |
| # Set the Title of the graph from here | |
| g.fig.suptitle('Relation between Sepal Width and Sepal Length', | |
| fontsize=34,color="b",alpha=0.3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment