<jupyter_start><jupyter_text>Matplotlib Tutorial: Pie Charts<jupyter_code>%matplotlib inline
import matplotlib.pyplot as plt<jupyter_output><empty_output><jupyter_text>Draw pie chart to track down home expenses<jupyter_code>exp_vals = [1400,600,300,410,250]
exp_labels = ["Home Rent","Food","Phone/Internet Bill","Car ","Other Utilities"]
plt.pie(exp_vals,labels=exp_labels)<jupyter_output><empty_output><jupyter_text>Draw pie chart as perfect circle<jupyter_code>plt.pie(exp_vals,labels=exp_labels, shadow=True)
plt.axis("equal")
plt.show()<jupyter_output><empty_output><jupyter_text>Show percentages for every pie. Specify radius to increase chart size<jupyter_code>plt.axis("equal")
plt.pie(exp_vals,labels=exp_labels, shadow=True, autopct='%1.1f%%',radius=1.5)
plt.show()<jupyter_output><empty_output><jupyter_text>Explode<jupyter_code>plt.axis("equal")
plt.pie(exp_vals,labels=exp_labels, shadow=True, autopct='%1.1f%%',radius=1.5,explode=[0,0,0,0.1,0.2])
plt.show()<jupyter_output><empty_output><jupyter_text>counterclock and angle properties<jupyter_code>plt.axis("equal")
plt.pie(exp_vals,labels=exp_labels, shadow=True, autopct='%1.1f%%',radius=1.5,explode=[0,0,0,0.1,0.2],counterclock=True, startangle=45)
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16003184713375795, 'fraction_numerical': 0.03503184713375796, 'mean_word_length': 13.616279069767442, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '206668', 'license': 'MIT', 'n_tokens_mistral': 526, 'n_tokens_neox': 496, 'n_words': 58, 'path': "Program's_Contributed_By_Contributors/AI-Summer-Course/py-master/matpltlib/6_pie_chart/6_pie_chart.ipynb", 'repo_name': 'siddharthdeo99/Hacktoberfest2k21', 'size': '1256'}