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

Skip to content

Commit e1f6464

Browse files
committed
Plot errorbars if fmt=='none'
1 parent 067f9b6 commit e1f6464

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/matplotlib/axes/_axes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2820,6 +2820,9 @@ def errorbar(self, x, y, yerr=None, xerr=None,
28202820
fmt_style_kwargs = {k: v for k, v in
28212821
zip(('linestyle', 'marker', 'color'),
28222822
_process_plot_format(fmt)) if v is not None}
2823+
if fmt == 'none':
2824+
# Remove alpha=0 color that _process_plot_format returns
2825+
fmt_style_kwargs.pop('color')
28232826

28242827
if ('color' in kwargs or 'color' in fmt_style_kwargs or
28252828
ecolor is not None):

0 commit comments

Comments
 (0)