Skip to content

Instantly share code, notes, and snippets.

@dipanjanS
Created January 10, 2018 18:59
Show Gist options
  • Save dipanjanS/5ce391031b6e0fd41e5bce2401890af6 to your computer and use it in GitHub Desktop.
Save dipanjanS/5ce391031b6e0fd41e5bce2401890af6 to your computer and use it in GitHub Desktop.
# Scatter Plot with Hue for visualizing data in 3-D
cols = ['density', 'residual sugar', 'total sulfur dioxide', 'fixed acidity', 'wine_type']
pp = sns.pairplot(wines[cols], hue='wine_type', size=1.8, aspect=1.8,
palette={"red": "#FF9999", "white": "#FFE888"},
plot_kws=dict(edgecolor="black", linewidth=0.5))
fig = pp.fig
fig.subplots_adjust(top=0.93, wspace=0.3)
t = fig.suptitle('Wine Attributes Pairwise Plots', fontsize=14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment