Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created March 12, 2020 17:40
Show Gist options
  • Save aniruddha27/80df820a42d82be81401e161d2f9ea2b to your computer and use it in GitHub Desktop.
Save aniruddha27/80df820a42d82be81401e161d2f9ea2b to your computer and use it in GitHub Desktop.
#plotting boxplot
plt.boxplot([x for x in c_price.values()],labels=[x for x in c_price.keys()])
#x and y-axis labels
plt.xlabel('Cuisine')
plt.ylabel('Price')
#plot title
plt.title('Analysing cuisine price')
#save and display
plt.savefig('C:\\Users\\Dell\\Desktop\\AV Plotting images\\matplotlib_plotting_9.png',dpi=300,bbox_inches='tight')
plt.show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment