Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#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