Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. documentclass{article}
  2.  
  3. usepackage{pgfplots}
  4.  
  5. begin{document}
  6. begin{tikzpicture}
  7. begin{axis}
  8. [
  9. % I'm using this:
  10. yticklabel = {pgfmathparse{tick-130}pgfmathprintnumber{pgfmathresult}},
  11. y filter/.expression = {y + 130},
  12. ymin = 0
  13. % I would like to have this:
  14. % comb origin = -infty % or something
  15. ]
  16. addplot[ycomb] coordinates {
  17. (1, -6)
  18. (2, -80)
  19. (3, -85)
  20. (4, -120)
  21. (5, -120)
  22. (6, -120)
  23. (7, -120)
  24. (8, -120)
  25. (9, -120)
  26. };
  27. end{axis}
  28. end{tikzpicture}
  29. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement