pgf-tikz / pgfplots

pgfplots - A TeX package to draw normal and/or logarithmic plots directly in TeX in two and three dimensions with a user-friendly interface and pgfplotstable - a TeX package to round and format numerical tables. Examples in manuals and/or on web site.
http://pgfplots.sourceforge.net/
200 stars 35 forks source link

error bar in a bar chart #240

Closed pgf-tikz-bot closed 4 years ago

pgf-tikz-bot commented 15 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/6/ Author: *anonymous Timestamp: 2009-04-20 09:44:18

How to add the error bars in a bar chart?

pgf-tikz-bot commented 15 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/6/#de99 Author: ludewich Timestamp: 2009-04-21 19:08:11

Hi,

error bars for bar charts can be added in the same way as for other plot types - bar plots are not considered to be special in this respect.

Example:

\begin{tikzpicture} \begin{axis}[ybar] \addplot plot[error bars/.cd,y dir=both,y fixed=5] coordinates {(0,10) (1,20) (3,40)}; \end{axis} \end{tikzpicture}

I hope this helps you. Please feel free to send mails to pgfplots-features@lists.sourceforge.net for further support.

Regards

Christian

pgf-tikz-bot commented 15 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/6/#937b Author: ludewich Timestamp: 2009-04-21 19:08:20