How to change the linewidth of errorbar caps?

I am using the function "errorbar" and would like to change the linewidth of the error bars. I am doing this using the following code:
e = errorbar(x,y,err) e.LineWidth = 0.25;
When I do this, the linewidth of the main stem of the errorbars change linewidth, but the lines of the caps are remaining the same width. I have also tried changing "CapSize", but this changes the width of the caps and not the LINEwidth of the caps.
This seems to have become a problem for me recently in a new download of Matlab 2017a. I am running this using macOS.
Any help would be appreciated! Thanks!

3 commentaires

Jayesh Khatri
Jayesh Khatri le 22 Nov 2018
Same issue. Suggestions anyone?
I'm also having the same obnoxious problem. I'd love to hear any ideas. It seems to be a problem in 2018 too.
Julien
Julien le 10 Mai 2021
check out this post:
https://www.mathworks.com/matlabcentral/answers/399508-errorbar-change-line-width-of-marker-line-not-of-error-bars

Connectez-vous pour commenter.

Réponses (0)

Catégories

Question posée :

le 27 Mai 2017

Commenté :

le 10 Mai 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by