Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9937813

Browse files
committed
BUG : guard marker from sym parsing in bxp
add a guard against `None` returned as `marker` by `_process_plot_format(sym)`.
1 parent 519dbfc commit 9937813

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3298,7 +3298,8 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
32983298
# process the symbol string
32993299
# discarded linestyle
33003300
_, marker, color = _process_plot_format(sym)
3301-
flierprops['marker'] = marker
3301+
if marker is not None:
3302+
flierprops['marker'] = marker
33023303
if color is not None:
33033304
flierprops['color'] = color
33043305
# assume that if color is passed in the user want

0 commit comments

Comments
 (0)