صفحة 138 - كتاب علم البيانات - الصف 11 - الفصل 1 - المملكة العربية السعودية

الكتاب: كتاب علم البيانات - الصف 11 - الفصل 1 | المادة: علم البيانات | المرحلة: الصف 11 | الفصل الدراسي: 1

الدولة: المملكة العربية السعودية | المنهج: المنهج السعودي - وزارة التعليم

📚 معلومات الصفحة

الكتاب: كتاب علم البيانات - الصف 11 - الفصل 1 | المادة: علم البيانات | المرحلة: الصف 11 | الفصل الدراسي: 1

الدولة: المملكة العربية السعودية | المنهج: المنهج السعودي - وزارة التعليم

نوع المحتوى: درس تعليمي

📝 ملخص الصفحة

📚 تنسيق المخططات الدائرية

المفاهيم الأساسية

تغيير تنسيق المخططات الدائرية: يمكن تطبيق خطوات إضافية على مخرجات البرنامج لتعديل شكل وطريقة عرض المخططات الدائرية.

خريطة المفاهيم

```markmap

تصوير البيانات

الأنواع الشائعة

المخططات

#### المخطط الدائري (Pie Chart)

##### إنشاء مخططات متعددة في شكل واحد

###### خطوات إنشاء أربعة مخططات دائرية في جوبيتر

####### 1. إنشاء شبكة من المحاور الفرعية

######## plt.subplots(2, 2, figsize=(16, 10), subplot_kw=dict(aspect="equal"))

######## إنشاء شكل (Figure) يحتوي على 2 صف و 2 عمود من المحاور الفرعية (Axes)

####### 2. إنشاء مخطط دائري لكل محور فرعي

######## استخراج الشرائح (slices) من صفوف مختلفة في إطار البيانات (groupsP.iloc[0, :])

######## استخراج التسميات (labels) من أعمدة إطار البيانات (groupsP.columns[:])

######## ضبط عرض النص العربي باستخدام arabic_reshaper و get_display

######## رسم المخطط الدائري لكل محور

######### ax1.pie(slices, labels=labelsCor, shadow=False, startangle=45, autopct='%1.1f%%', wedgeprops={'edgecolor': 'black'})

######## تعيين عنوان لكل مخطط من بيانات الصف الأول (groupsP.iloc[0, 0])

######### ax1.set_title(title1)

##### تغيير تنسيق المخططات الدائرية

###### تطبيق خطوات إضافية على مخرجات البرنامج لتعديل التنسيق

مكتبة مات بلوت ليب (Matplotlib)

تحتوي على مجموعة كبيرة من الإعدادات لتصميم المخططات

يمكن زيارة الموقع الإلكتروني http://matplotlib.org للاطلاع على التفاصيل

```

نقاط مهمة

  • الصفحة تحتوي على أمثلة تطبيقية لعدة مخططات، منها أربعة مخططات دائرية توضح توزيع نسب الطلبة والمعلمين والإداريين في مراحل تعليمية مختلفة (الابتدائي، المتوسط، الثانوي، الثانوية العليا).
  • تظهر الأمثلة أيضاً مخططاً دائرياً لتوزيع مبيعات المنتجات، ومخططاً عمودياً (Bar Chart) لمبيعات المنتجات حسب الربع، ومخططاً خطياً (Line Chart) لاتجاهات المبيعات.

📄 النص الكامل للصفحة

هذا هو مخرج البرنامج، ومن خلال تطبيق خطوات إضافية، يمكنك تغيير تنسيق المخططات الدائرية. --- VISUAL CONTEXT --- **CHART**: Untitled Description: Pie chart showing percentages for the primary stage. Table Structure: Headers: N/A Rows: Data: Pie chart showing the distribution of students, teachers, and administrators in the primary stage. Context: Shows the percentage distribution of students, teachers, and administrators in the primary stage. **CHART**: Untitled Description: Pie chart showing percentages for the secondary stage. Table Structure: Headers: N/A Rows: Data: Pie chart showing the distribution of students, teachers, and administrators in the secondary stage. Context: Shows the percentage distribution of students, teachers, and administrators in the secondary stage. **CHART**: Untitled Description: Pie chart showing percentages for the intermediate stage. Table Structure: Headers: N/A Rows: Data: Pie chart showing the distribution of students, teachers, and administrators in the intermediate stage. Context: Shows the percentage distribution of students, teachers, and administrators in the intermediate stage. **CHART**: Untitled Description: Pie chart showing percentages for the high school stage. Table Structure: Headers: N/A Rows: Data: Pie chart showing the distribution of students, teachers, and administrators in the high school stage. Context: Shows the percentage distribution of students, teachers, and administrators in the high school stage. **CHART**: المخطط الدائري Description: Pie chart showing product sales. Table Structure: Headers: N/A Rows: Data: Pie chart showing the distribution of product sales. Context: Shows the distribution of product sales. **CHART**: Untitled Description: Bar chart showing product sales by quarter. Table Structure: Headers: N/A Rows: Data: Bar chart showing the distribution of product sales by quarter. Context: Shows the distribution of product sales by quarter. **CHART**: Untitled Description: Line chart showing product sales trends. Table Structure: Headers: N/A Rows: Data: Line chart showing the trends of product sales. Context: Shows the trends of product sales.