Consider the following example from this answer:
\documentclass[border=0bp]{standalone}
\usepackage{pst-plot}
\begin{document}
\psset{unit=1.5cm}
\begin{pspicture}showgrid=false(4,2)
\psframe*linecolor=yellow,opacity=0.5(4,2)
\psaxes[linecolor=lightgray]{->}(0,0)(-2.5,-0.5)(3.5,1.5)[$t$,0][$F(t)$,90]
\psset{algebraic,linewidth=1.5pt,linecolor=red}
\pscustom
{
\psplot{-2.5}{-1}{0}
\psplot{-1}{0}{(x+1)/4}
\psplot{0}{1}{1/2}
\psplot{1}{2}{(x+7)/12}
\psplot{2}{3.5}{1}
}
\end{pspicture}
\end{document}
I wonder how I could add labels to each piece of this piecewise function so that it look like this $f_1$ to $f_5$
It would be great if I could adjust the coordinate of those labels freely. A stupid way is that I can add a "transparent" point to a certain coordinate of the figure and add a label to that point, but I don't even know how to do this.



\pclineit will be converted to nodes, which can be used automatically by\naput(node above) – user187802 Sep 30 '22 at 19:10