[pstricks] pst-fit

Markus Krebs markuskrebs at web.de
Sun Mar 17 17:33:56 CET 2024


Dear all,

is there any easy way to change the font size and the decimal seperator
in listplot for the printed equation and the coefficient of determination?

Minimal working example:

\documentclass{article}
\usepackage{pst-fit,pstricks-add}
\begin{document}
\begin{filecontents}[overwrite]{linearbsp.dat}
5 1
3 4
4 2
6 1
2 7
\end{filecontents}
\readdata{\Linear}{linearbsp.dat}
\psset{unit=1cm}
\begin{pspicture}(-1,-1)(7,10)
\psaxes[showorigin=false]{->}(0,0)(-1,-1)(7,10)[$x$,270][$y$,0]
\psplot[algebraic,linecolor=gray,linestyle=dashed]{-1}{7}{9-1.5*x}
\listplot[plotstyle=dots,linecolor=red,dotscale=2,dotstyle=x]{\Linear}
\listplot[decimals=6,EqPos=5 6,plotstyle=GLLSR,
linestyle=solid,linecolor=blue,linewidth=1.5pt,comma]{\Linear}
\end{pspicture}
\end{document}

Thanks for any help in advance!

Markus





More information about the PSTricks mailing list.