Created
December 11, 2018 01:00
-
-
Save dipanjanS/3dbc02ea98caaa92309546843e74b606 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fig = plt.figure(figsize = (6, 4)) | |
title = fig.suptitle("Wine Quality Frequency", fontsize=14) | |
fig.subplots_adjust(top=0.85, wspace=0.3) | |
ax = fig.add_subplot(1,1, 1) | |
ax.set_xlabel("Quality") | |
ax.set_ylabel("Frequency") | |
w_q = wines['quality'].value_counts() | |
w_q = (list(w_q.index), list(w_q.values)) | |
ax.tick_params(axis='both', which='major', labelsize=8.5) | |
bar = ax.bar(w_q[0], w_q[1], color='steelblue') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment