[pstricks] pst-fit
Herbert Voss
Herbert.Voss at fu-berlin.de
Sun Mar 17 21:40:02 CET 2024
Am 17.03.24 um 17:33 schrieb Markus Krebs via PSTricks:
>
> 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?
The next version of pst-fit (in the next two days) knows the optional
argument "comma":
0.03 2024-03-17 - added option comma for decimals instead of dot
the PS fontsize can be changed by fontscale=20, (in pt)
\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,comma}%%%%%%%%%%%%%%%%%%
\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,fontscale=20,%%%%%%%
linestyle=solid,linecolor=blue,linewidth=1.5pt]{\Linear}
\end{pspicture}
\end{document}
Herbert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto 2024-03-17 um 21.27.39.png
Type: image/png
Size: 32067 bytes
Desc: not available
URL: <https://tug.org/pipermail/pstricks/attachments/20240317/6af3b075/attachment-0001.png>
More information about the PSTricks
mailing list.