2d-semicubical-parabola.tex 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{pgfplots}
  3. \usepackage{tikz}
  4. \begin{document}
  5. \begin{tikzpicture}
  6. \begin{axis}[
  7. legend pos=south east,
  8. axis x line=middle,
  9. axis y line=middle,
  10. grid = major,
  11. %width=9cm,
  12. %height=4.5cm,
  13. grid style={dashed, gray!30},
  14. xmin= 0, % start the diagram at this x-coordinate
  15. xmax= 12, % end the diagram at this x-coordinate
  16. ymin=-10, % start the diagram at this y-coordinate
  17. ymax= 10, % end the diagram at this y-coordinate
  18. %axis background/.style={fill=white},
  19. xlabel=$x$,
  20. ylabel=$y$,
  21. %xticklabels={-2,-1.6,...,7},
  22. tick align=outside,
  23. %minor tick num=-3,
  24. enlargelimits=true]
  25. \addplot[domain=0:12, red, thick,samples=500] {1/3*x^1.5};
  26. \addplot[domain=0:12, orange, thick,samples=500] {1*x^1.5};
  27. \addplot[domain=0:12, blue, thick,samples=500] {2*x^1.5};
  28. \addplot[domain=0:12, red, thick,samples=500] {-1/3*x^1.5};
  29. \addplot[domain=0:12, orange, thick,samples=500] {-1*x^1.5};
  30. \addplot[domain=0:12, blue, thick,samples=500] {-2*x^1.5};
  31. \addlegendentry{$a=\frac{1}{3}$}
  32. \addlegendentry{$a=1$}
  33. \addlegendentry{$a=2$}
  34. \end{axis}
  35. \end{tikzpicture}
  36. \end{document}