Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created March 12, 2020 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aniruddha27/d847f8aebc8d00eb5cedbb16fa7491e2 to your computer and use it in GitHub Desktop.
Save aniruddha27/d847f8aebc8d00eb5cedbb16fa7491e2 to your computer and use it in GitHub Desktop.
#pie plot
plt.pie([x*100 for x in d_cuisine.values()],labels=[x for x in d_cuisine.keys()],autopct='%0.1f',explode=[0,0,0.1,0])
#label the plot
plt.title('Cuisine share %')
plt.savefig('C:\\Users\\Dell\\Desktop\\AV Plotting images\\matplotlib_plotting_8.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