Skip to content

Commit f8bc59f

Browse files
authored
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`
1 parent 3c01b35 commit f8bc59f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: AnatomyOfMatplotlib-Part2-Plotting_Methods_Overview.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"# We could have also done this with two separate calls to `ax.bar` and numpy boolean indexing.\n",
117117
"for bar, height in zip(vert_bars, y):\n",
118118
" if height < 0:\n",
119-
" bar.set(edgecolor='darkred', color='salmon', linewidth=3)\n",
119+
" bar.set(color='salmon', edgecolor='darkred', linewidth=3)\n",
120120
"\n",
121121
"plt.show()"
122122
]

0 commit comments

Comments
 (0)