From f11c72accbf934258f9d7cf6758b89e78f0c59e5 Mon Sep 17 00:00:00 2001 From: dev-javedali Date: Mon, 7 Sep 2026 02:28:52 +0500 Subject: [PATCH 1/4] Complete the subplots example to actually show two subplots The second subplot call was commented out along with a leftover line that called set_title() on a plain list, which isn't valid. Uncommented and fixed the expense subplot, added titles for both, and added tight_layout so they don't overlap. --- matpltlib/10_subplots.ipynb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/matpltlib/10_subplots.ipynb b/matpltlib/10_subplots.ipynb index d6d2accb..594a4a6c 100644 --- a/matpltlib/10_subplots.ipynb +++ b/matpltlib/10_subplots.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "

Matplotlib Tutorial: Subplots

" + "

Matplotlib Tutorial: Subplots

" ] }, { @@ -53,12 +53,14 @@ "expense=[2800,3000,2800,3400]\n", "\n", "plt.subplot(2,1,1)\n", - "# income.set_title('Income')\n", "plt.bar(year,income)\n", + "plt.title('Income')\n", "\n", + "plt.subplot(2,1,2)\n", + "plt.bar(year,expense,color='green')\n", + "plt.title('Expense')\n", "\n", - "# plt.subplot(2,1,2)\n", - "# plt.bar(year,expense,color='green')" + "plt.tight_layout()\n" ] } ], From 3a4f3b8398d3ed13f811006a922e8f0bb0a8039a Mon Sep 17 00:00:00 2001 From: dev-javedali Date: Mon, 7 Sep 2026 02:29:47 +0500 Subject: [PATCH 2/4] Fix duplicate blood sugar range in diabetic classification list 80-100 was listed for both Normal and Diabetic. Based on the bins used later in the notebook ([80,100,125,150]), the diabetic range should be 125-150. --- matpltlib/5_histogram/5_histogram.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matpltlib/5_histogram/5_histogram.ipynb b/matpltlib/5_histogram/5_histogram.ipynb index d6f63ee6..d3837753 100644 --- a/matpltlib/5_histogram/5_histogram.ipynb +++ b/matpltlib/5_histogram/5_histogram.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "

Matplotlib Tutorial: Histogram

" + "

Matplotlib Tutorial: Histogram

" ] }, { @@ -122,7 +122,7 @@ "" ] }, From e4c4fdd8281ff12315b448b6680234759850d5f9 Mon Sep 17 00:00:00 2001 From: dev-javedali Date: Mon, 7 Sep 2026 02:30:03 +0500 Subject: [PATCH 3/4] Fix typo and unclosed tag in bar chart notebook Title read 'US Technolog Stocks' (missing y), and the horizontal bar chart heading closed with

instead of

. --- matpltlib/4_bar_chart/4_bar_chart.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matpltlib/4_bar_chart/4_bar_chart.ipynb b/matpltlib/4_bar_chart/4_bar_chart.ipynb index 201741b3..6126a315 100644 --- a/matpltlib/4_bar_chart/4_bar_chart.ipynb +++ b/matpltlib/4_bar_chart/4_bar_chart.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "

Matplotlib Tutorial: Bar Chart

" + "

Matplotlib Tutorial: Bar Chart

" ] }, { @@ -155,7 +155,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "

Horizontal bar chart using barh function

" + "

Horizontal bar chart using barh function

" ] }, { @@ -189,7 +189,7 @@ "\n", "plt.yticks(xpos,company)\n", "plt.ylabel(\"Revenue(Bln)\")\n", - "plt.title('US Technolog Stocks')\n", + "plt.title('US Technology Stocks')\n", "plt.legend()" ] } From c7ef3dabb862ea3f46247d0f9b73e63793040bf9 Mon Sep 17 00:00:00 2001 From: dev-javedali Date: Mon, 7 Sep 2026 02:30:22 +0500 Subject: [PATCH 4/4] Remove stray comma in h1 tags across tutorial notebooks Several notebooks had align=center, style=... with an invalid comma between attributes, inconsistent with the other notebooks in the repo that don't have it. --- matpltlib/6_pie_chart/6_pie_chart.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matpltlib/6_pie_chart/6_pie_chart.ipynb b/matpltlib/6_pie_chart/6_pie_chart.ipynb index 645fb955..efac2881 100644 --- a/matpltlib/6_pie_chart/6_pie_chart.ipynb +++ b/matpltlib/6_pie_chart/6_pie_chart.ipynb @@ -6,7 +6,7 @@ "collapsed": true }, "source": [ - "

Matplotlib Tutorial: Pie Charts

" + "

Matplotlib Tutorial: Pie Charts

" ] }, {