Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. pgfplotstableread[row sep=\,col sep=&]{
  2. cvar & percent \
  3. 0.0 & 168 \
  4. 0.005 & 188 \
  5. 0.01 & 159 \
  6. 0.015 & 87 \
  7. 0.02 & 49 \
  8. 0.025 & 0 \
  9. }data
  10.  
  11. begin{figure}[t]
  12. begin{tikzpicture}
  13. small
  14. begin{axis}[
  15. yticklabel style={
  16. /pgf/number format/.cd, fixed, fixed zerofill, precision=3, /tikz/.cd
  17. },
  18. scaled y ticks=false,
  19. width=7cm,
  20. axis lines=left,
  21. tick label style={font=small},
  22. xbar interval,
  23. grid=none,
  24. ymax=.03,
  25. xmax=250,
  26. ytick=data,
  27. yticklabel interval boundaries,
  28. y tick label style={font=tiny},
  29. xmajorgrids,
  30. nodes near coords,
  31. every node near coord/.append style={align=right,xshift=5pt,yshift=5pt,font=tiny},
  32. ]
  33. addplot[] table[y=cvar,x=percent]{data};
  34. end{axis}
  35. end{tikzpicture}
  36. end{figure}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement