Created
March 12, 2020 17:28
-
-
Save aniruddha27/a9a1f1ba492c9e77ee0f0fb8d646ad08 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
#bar graph | |
plt.bar(table.index,table['num_orders']) | |
#xticks | |
plt.xticks(rotation=70) | |
#x-axis labels | |
plt.xlabel('Food item') | |
#y-axis labels | |
plt.ylabel('Quantity sold') | |
#plot title | |
plt.title('Most popular food') | |
#save plot | |
plt.savefig('C:\\Users\\Dell\\Desktop\\AV Plotting images\\matplotlib_plotting_6.png',dpi=300,bbox_inches='tight') | |
#display | |
plot plt.show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment