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