Aufgabe 2 b)

 avatar
unknown
plain_text
9 months ago
377 B
14
Indexable
import numpy as np
from matplotlib import pyplot as plt

x_values=["Asien", "Afrika", "Nordamerika", "Südamerika", "Antarktika", "Europa" , "Australien", "Wasser"]
y_values=[44.4 ,30.3, 24.9, 17.8, 13.2, 10.5, 8.5 , 361]
ex=[0,0,0,0,0,0,0,0.3]
plt.pie(y_values , labels=x_values, explode=ex , autopct="%.2f%%", pctdistance=0.8, )
plt.title("Kontinente")


plt.show()
Editor is loading...
Leave a Comment