Guest User

Untitled

a guest
May 20th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. documentclass{standalone}
  2. usepackage{pgfplots}
  3. begin{document}
  4. begin{tikzpicture}
  5. begin{axis}[
  6. axis x line=bottom,
  7. axis y line=left,
  8. ultra thick,
  9. y coord trafo/.code={pgfmathparse{sqrt(#1)}},
  10. y coord inv trafo/.code={pgfmathparse{pow(#1,2)}}
  11. ]
  12. addplot coordinates {
  13. (0,0)
  14. (0.3,0)
  15. (0.44,0.00016)
  16. (0.45,0.00045)
  17. (0.49,0.00071)
  18. (0.5,0.001)
  19. (0.51,0.00139)
  20. (0.54,0.00176)
  21. (0.56,0.00214)
  22. (0.57,0.00243)
  23. (0.61,0.00279)
  24. (0.63,0.00327)
  25. (0.64,0.00386)
  26. (0.67,0.00433)
  27. };
  28. end{axis}
  29. end{tikzpicture}
  30. end{document}
  31.  
  32. documentclass{standalone}
  33. usepackage{pgfplots}
  34. pgfplotsset{compat=1.14}
  35. begin{document}
  36. begin{tikzpicture}
  37. begin{axis}[
  38. axis lines=middle,
  39. ultra thick,
  40. xlabel= $V$, ylabel=$I$,
  41. x label style={at={(current axis.right of origin)}, anchor=west},
  42. % y coord trafo/.code={pgfmathparse{sqrt(#1)}},
  43. % y coord inv trafo/.code={pgfmathparse{pow(#1,2)}},
  44. ]
  45. addplot coordinates {
  46. (-0.48, -0.002)
  47. (-0.43, -0.0002)
  48. (-0.3, -0.0001)
  49. (0,0)
  50. (0.3,0)
  51. (0.44,0.00016)
  52. (0.45,0.00045)
  53. (0.49,0.00071)
  54. (0.5,0.001)
  55. (0.51,0.00139)
  56. (0.54,0.00176)
  57. (0.56,0.00214)
  58. (0.57,0.00243)
  59. (0.61,0.00279)
  60. (0.63,0.00327)
  61. (0.64,0.00386)
  62. (0.67,0.00433)
  63. };
  64. draw[red, dashed] (axis cs:0.6, 0)--(axis cs:0.6, 0.004);
  65. end{axis}
  66. end{tikzpicture}
  67. end{document}
Add Comment
Please, Sign In to add comment