Quantcast
Viewing latest article 18
Browse Latest Browse All 35

Setting error bar line width using \pgfplotsset [duplicate]

In the following MWE, the lines and vertical error bars have the correct width, but not the horizontal bars. How do I set them to 'very thick'? Also, is there a way to control their length? Finally, is there a way to set the error bars to solid, while having the line being dashed?

\documentclass{article}\usepackage{pgfplots}\pgfplotsset{compat=newest}\pgfplotsset{/pgfplots/error bars/error bar style={very thick}}\pgfplotsset{  every axis plot/.append style={very thick, black},}\begin{document}\begin{tikzpicture}  \begin{axis}    \addplot [dashed, mark=asterisk, error bars/.cd, y dir=both, y explicit]    table [x=x, y=y, y error=y-err]{%      x y y-err      0 0 0.5      1 1 0.5      2 2 0.5      3 3 0.5      4 4 0.5    };  \end{axis}\end{tikzpicture}\end{document}

Viewing latest article 18
Browse Latest Browse All 35

Trending Articles