Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error bar colors in scatter plots #484

Open
schtandard opened this issue Jul 7, 2024 · 0 comments
Open

Error bar colors in scatter plots #484

schtandard opened this issue Jul 7, 2024 · 0 comments

Comments

@schtandard
Copy link

Error bars in scatter plots should take the color of the data point. Or at least, realizing that effect should be made convenient.

\documentclass{article}

\usepackage{pgfplots}
\pgfplotsset{compat=1.18}

\begin{document}

\begin{tikzpicture}
  \begin{axis} [
        scatter,
        error bars/y dir=both,
        error bars/y fixed=2,
      ]
    \addplot+ [domain=-5:5] {x^2};
  \end{axis}
\end{tikzpicture}

\end{document}

image

There are a couple of questions on tex.sx about this, most notably this one from 2013. The answer gives a usable workaround (though it is broken due to #483) but that is not ideal. In the comments, Christian Feuersänger mentions that he already implemented a proper fix, minus some fine tuning. I don't think that ever made it into a release, though; at least I can't find an option for it or an example in the manual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant