I have a data set of the form x
vs. y
.
I want to add to this data set vertical error bars only at specific coordinates
(x73,y73), (x108,y108) etc.
Otherwise my plot would be too cluttered.
I tried this:
\documentclass{standalone}\usepackage{tikz,pgfplots}\pgfplotsset{compat=1.17}\begin{document}\begin{tikzpicture}\begin{axis}\addplot [only marks, mark size=1pt, mark options={blue}, error bars/.cd,x dir=both, x explicit,y dir=both, y explicit,error mark options={ rotate=90, red, mark size=3pt,% line width=1pt }] table [y error=error] {x y error1 8 02 5 03 7 2 % <--This coordinate should have error bar4 6 05 7 06 9 0};\end{axis}\end{tikzpicture}\end{document}
If you don't specify any error mark options
as described here, you get a seemingly desired result.
But I want the error marks to be a bit longer than the default, and by extending it I also extend the zero's error's marks.
How to avoid that?