2d-semicubical-parabola.tex 1.2 KB

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