X Tutup
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2821,7 +2821,7 @@ def errorbar(self, x, y, yerr=None, xerr=None,
for key in ('linewidth', 'lw'):
if key in kwargs:
lines_kw[key] = kwargs[key]
for key in ('transform', 'alpha', 'zorder'):
for key in ('transform', 'alpha', 'zorder', 'rasterized'):
if key in kwargs:
lines_kw[key] = kwargs[key]

Expand Down Expand Up @@ -2873,7 +2873,8 @@ def xywhere(xs, ys, mask):
plot_kw['markeredgewidth'] = capthick
# For backwards-compat, allow explicit setting of
# 'mew' or 'markeredgewidth' to over-ride capthick.
for key in ('markeredgewidth', 'mew', 'transform', 'alpha', 'zorder'):
for key in ('markeredgewidth', 'mew', 'transform', 'alpha',
'zorder', 'rasterized'):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you know... I only added this one tiny bit of logic back in the day for handling "mew" in case users already figured out how to adjust the cap thickness (it was never documented). I intended to deprecate that at some point, but forgot to do that. I didn't think it would ever be used for other things like this. Perhaps there are other keyword arguments that should be checked?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably

if key in kwargs:
plot_kw[key] = kwargs[key]

Expand Down
X Tutup