[pstricks] pst-fit

Markus Krebs markuskrebs at web.de
Tue Mar 19 09:19:02 CET 2024


Dear Herbert!

Thanks a lot!

Markus

Am 17.03.2024 um 21:40 schrieb Herbert Voss:
>
>
> 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
>
> --
> list: https://lists.tug.org/pstricks
> archive: https://tug.org/pipermail/pstricks/



More information about the PSTricks mailing list.