Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. documentclass{report}
  2. usepackage{pgfplots}
  3. begin{document}
  4. begin{tikzpicture}
  5. begin{axis}[
  6. ybar,
  7. ymin=0, yticklabel style={/pgf/number format/fixed},
  8. visualization depends on=y as rawy,
  9. symbolic x coords={a,b,c,d}, enlarge x limits=0.15,
  10. every node near coord/.append style={
  11. font=tiny,
  12. shift={(axis direction cs:0,-rawy)}
  13. }
  14. ]
  15. addplot+ [nodes near coords, point meta=explicit symbolic]
  16. table[x index=0, y index=1, meta index=3] {
  17. a 0.1872 0.0040 0
  18. b 0.0358 0.0017 22
  19. c 0.0358 0.0017 23
  20. d 0.0358 0.0017 24
  21. };
  22. end{axis}
  23. end{tikzpicture}
  24. end{document}
  25.  
  26. ! Package pgfplots Error: Sorry, the input coordinate `0' has not been defined
  27. with 'symbolic x coords={a,b,c,d}... Maybe it has been misspelled? Or did you m
  28. ean something like [normalized]0?.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement