I want the line to be drawn above the x-axis. Now the line is drawn first and then the x-axis is plotted. I want to reverse it.
\begin{center}
\begin{tikzpicture}
\begin{axis}[
axis lines = center,
xlabel = \(t\),
ylabel = {\(\text{Hv}(t)\)},
ymin=0,
ymax=1.5,
every axis plot/.append style={ultra thick},
tick align=inside
]
\addplot [
domain=0:5,
samples=100,
color=red,
]
{1};
\addplot [
domain=-5:0,
samples=100,
color=red,
]
{0};
\addplot[soldot] coordinates{(0,1)};
\addplot[holdot] coordinates{(0,0)};
\end{axis}
\end{tikzpicture}
\end{center}
Thanks in advance




