<jupyter_start><jupyter_text>Many values that DON'T overlap<jupyter_code>import matplotlib.pyplot as plt
import numpy as np

fig, ax = plt.subplots(figsize=(6, 3), subplot_kw=dict(aspect="equal"))

recipe = ["composition",
          "process",
          "pathology",
          "other_meds",
          "disposal",
          "animal",
          "device",
          "cultivation",
          "food",
          "tests",
          "pathology"]


data = [199, 179, 63, 128, 33, 8, 44, 24, 37, 31, 4]



#When you change the width to 0.5 you get a donut chart

wedges, texts = ax.pie(data, wedgeprops=dict(width=1), startangle=-140)

bbox_props = dict(boxstyle="square,pad=0.3", fc="w", ec="k", lw=0.72)
kw = dict(arrowprops=dict(arrowstyle="-"),
          bbox=bbox_props, zorder=0, va="center")

for i, p in enumerate(wedges):
    ang = (p.theta2 - p.theta1)/2. + p.theta1
    y = np.sin(np.deg2rad(ang))
    x = np.cos(np.deg2rad(ang))
    horizontalalignment = {-1: "right", 1: "left"}[int(np.sign(x))]
    connectionstyle = "angle,angleA=0,angleB={}".format(ang)
    kw["arrowprops"].update({"connectionstyle": connectionstyle})
    ax.annotate(recipe[i], xy=(x, y), xytext=(2*np.sign(x), 2*y),
                horizontalalignment=horizontalalignment, **kw)

#ax.set_title("Title of graph")

plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17531978931527464, 'fraction_numerical': 0.03611738148984198, 'mean_word_length': 3.34640522875817, 'pattern_counts': {'":': 1, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '410071', 'license': 'MIT', 'n_tokens_mistral': 534, 'n_tokens_neox': 489, 'n_words': 101, 'path': 'PLOTTING_________Different Plots.ipynb', 'repo_name': 'MaximilianFreitag/JupyterNotebooks', 'size': '1329'}