From f8bc59ffe1f84b900989de41e685e85a6835ba76 Mon Sep 17 00:00:00 2001 From: Canute <46291012+canute24@users.noreply.github.com> Date: Sat, 7 Aug 2021 10:16:21 +0530 Subject: [PATCH] Updated with changes as per newer matplotlib api to remove deprecation warning Updated `bar.set(color='salmon', edgecolor='darkred', linewidth=3)` to pass `color` before `edgecolor` to fix `MatplotlibDeprecationWarning` --- AnatomyOfMatplotlib-Part2-Plotting_Methods_Overview.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AnatomyOfMatplotlib-Part2-Plotting_Methods_Overview.ipynb b/AnatomyOfMatplotlib-Part2-Plotting_Methods_Overview.ipynb index 8239f9e..ac00986 100644 --- a/AnatomyOfMatplotlib-Part2-Plotting_Methods_Overview.ipynb +++ b/AnatomyOfMatplotlib-Part2-Plotting_Methods_Overview.ipynb @@ -116,7 +116,7 @@ "# We could have also done this with two separate calls to `ax.bar` and numpy boolean indexing.\n", "for bar, height in zip(vert_bars, y):\n", " if height < 0:\n", - " bar.set(edgecolor='darkred', color='salmon', linewidth=3)\n", + " bar.set(color='salmon', edgecolor='darkred', linewidth=3)\n", "\n", "plt.show()" ]