Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{report}
- usepackage{pgfplots}
- begin{document}
- begin{tikzpicture}
- begin{axis}[
- ybar,
- ymin=0, yticklabel style={/pgf/number format/fixed},
- visualization depends on=y as rawy,
- symbolic x coords={a,b,c,d}, enlarge x limits=0.15,
- every node near coord/.append style={
- font=tiny,
- shift={(axis direction cs:0,-rawy)}
- }
- ]
- addplot+ [nodes near coords, point meta=explicit symbolic]
- table[x index=0, y index=1, meta index=3] {
- a 0.1872 0.0040 0
- b 0.0358 0.0017 22
- c 0.0358 0.0017 23
- d 0.0358 0.0017 24
- };
- end{axis}
- end{tikzpicture}
- end{document}
- ! Package pgfplots Error: Sorry, the input coordinate `0' has not been defined
- with 'symbolic x coords={a,b,c,d}... Maybe it has been misspelled? Or did you m
- ean something like [normalized]0?.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement