I want to extend the y-axis so that the value of the maximum on the graph isn't at tip of the y-axis arrow. (I also want to extend the x-axis for the same reason). See an example below:
What I want should look something like this (found in: https://tikz.dev/dv-axes)

I would also like to include ticks as in this picture to my example.
Thank you! (Sorry for big pictures, I do not know how to scale them here)
Codes:
\documentclass[11pt]{article}
\usepackage[a4paper,hmargin=1in,top=1.2in,bottom=1in]{geometry}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xmin=-5, xmax=5,
ymin=-0.5, ymax=5,
ticks=none,
axis y line=middle,
axis x line=middle,
axis line style=thick,
ytick pos=upper,
xlabel=$(1)$, ylabel=$(2)$,
x label style={anchor=west},
y label style={anchor=south},
]
\addplot [
ultra thick,
domain=-10:10,
color=black!50!green,
smooth
]
{0.3333333*x^2};
%\addlegendentry{(\frac{1}{3}x^2)}
\addplot [
ultra thick,
domain=-10:10,
color=black!20!blue,
smooth
]
{x^2};
%\addlegendentry{(x^2)}
\addplot [
ultra thick,
domain=-10:10,
color=black!10!red,
smooth
]
{3*x^2};
%\addlegendentry{(3x^2)}
\end{axis}
\end{tikzpicture}
\end{document}


restrict y to domain, the plots will end at different heights (the last sampled point within this domain).axis line style={-to}changes the arrow tip!? – hpekristiansen Jan 05 '23 at 05:24axis line style={-to}will change the arrow tip. Regardingrestrict y to domain, that's true, that's why I added some many samples points. Withsamples at = {}you can modify the samples points – xpt Jan 05 '23 at 05:39