Skip to content

Instantly share code, notes, and snippets.

@dipanjanS
Created January 10, 2018 18:33
Show Gist options
  • Save dipanjanS/4809263de29744c22b2afe4ae2447a16 to your computer and use it in GitHub Desktop.
Save dipanjanS/4809263de29744c22b2afe4ae2447a16 to your computer and use it in GitHub Desktop.
# Using multiple Histograms
fig = plt.figure(figsize = (6, 4))
title = fig.suptitle("Sulphates Content in Wine", fontsize=14)
fig.subplots_adjust(top=0.85, wspace=0.3)
ax = fig.add_subplot(1,1, 1)
ax.set_xlabel("Sulphates")
ax.set_ylabel("Frequency")
g = sns.FacetGrid(wines, hue='wine_type', palette={"red": "r", "white": "y"})
g.map(sns.distplot, 'sulphates', kde=False, bins=15, ax=ax)
ax.legend(title='Wine Type')
plt.close(2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment