PYTHON Tutorial
import matplotlib.pyplot as plt
# مخطط باري
plt.bar(['أ', 'ب', 'ج'], [10, 20, 30])
plt.title("مخطط باري")
plt.xlabel("الفئة")
plt.ylabel("القيمة")
plt.show()
# مخطط هرمي
plt.hist([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
plt.title("مخطط هرمي")
plt.xlabel("القيمة")
plt.ylabel("التكرار")
plt.show()
# مخطط تشتت
plt.scatter([1, 2, 3, 4, 5], [6, 7, 8, 9, 10])
plt.title("مخطط تشتت")
plt.xlabel("المتغير X")
plt.ylabel("المتغير Y")
plt.show()
# مخطط دائري
plt.pie([10, 20, 30, 40], labels=['أ', 'ب', 'ج', 'د'])
plt.title("مخطط دائري")
plt.show()
# مخطط صندوقي
plt.boxplot([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
plt.title("مخطط صندوقي")
plt.xlabel("المجموعة")
plt.ylabel("القيمة")
plt.show()