Skip to content

Instantly share code, notes, and snippets.

@MLWhiz
Created April 18, 2019 19:10
Show Gist options
  • Select an option

  • Save MLWhiz/8b8014c171aa2bfa2d47f29095478e2e to your computer and use it in GitHub Desktop.

Select an option

Save MLWhiz/8b8014c171aa2bfa2d47f29095478e2e to your computer and use it in GitHub Desktop.
# 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