Closed
Description
Problem
Currently, plt.errorbar() does not provide a direct way to change the linestyle of the error bars themselves. The linestyle parameter only affects the main connecting line, and modifying the error bars requires accessing the returned object and manually setting e.g. set_linestyle('--') on the error bar lines.
Proposed solution
Introduce a new parameter, e.g., error_linestyle, that allows users to set the linestyle of the error bars directly. Example usage:
plt.errorbar(x, y, yerr=yerr, fmt='o', error_linestyle='--')