Guest User

Untitled

a guest
Jan 20th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. # Visualizing 6-D mix data using scatter charts
  2. # leveraging the concepts of hue, size, facets and shape
  3. g = sns.FacetGrid(wines, row='wine_type', col="quality", hue='quality_label', size=4)
  4. g.map(plt.scatter, "residual sugar", "alcohol", alpha=0.5,
  5. edgecolor='k', linewidth=0.5, s=wines['total sulfur dioxide']*2)
  6. fig = g.fig
  7. fig.set_size_inches(18, 8)
  8. fig.subplots_adjust(top=0.85, wspace=0.3)
  9. fig.suptitle('Wine Type - Sulfur Dioxide - Residual Sugar - Alcohol - Quality Class - Quality Rating', fontsize=14)
  10. l = g.add_legend(title='Wine Quality Class')
Add Comment
Please, Sign In to add comment