[pstricks] dimension too large
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Thu Nov 26 20:15:13 CET 2015
Am 26.11.2015 um 20:10 schrieb Herbert Voss:
> Am 26.11.2015 um 17:40 schrieb Germain Boyer:
>> Look at this pspicture
>>
>> \documentclass[a4paper,11pt]{article}
>> \usepackage{fourier}
>> \usepackage[T1]{fontenc}
>> \usepackage[utf8]{inputenc}
>> \usepackage{pst-func,pst-plot,pstricks-add}
>> \usepackage{geometry}
>> \geometry{nohead,nofoot,left=3.5cm,right=3.5cm,top=1cm,bottom=1cm}
>> \usepackage[french]{babel}
>> %
>> \begin{document}
>> %
>> %\psset{xunit=0.003cm,yunit=12000cm, arrowsinset=0 ,arrowscale=1.25,
>> algebraic=true}
>> \psset{xunit=0.003cm,yunit=575cm, arrowinset=0 ,arrowscale=1.25,
>> algebraic=true}
>
>
> reduce the values for the axes, eg by 1000 and use x|ylabelFactor
> to show the correct values. Here is an example for the y-axis:
>
>
> \documentclass[a4paper,11pt]{article}
> \usepackage{fourier}
> \usepackage{pst-func,pst-plot,pstricks-add}
> \usepackage{geometry}
> \geometry{nohead,nofoot,left=3.5cm,right=3.5cm,top=1cm,bottom=1cm}
> \usepackage[french]{babel}
> %
> \begin{document}
> \psset{xunit=0.003cm,yunit=2cm, arrowinset=0 ,arrowscale=1.25,
> algebraic=true}
> \begin{pspicture}(-500,-1)(3000,3.5)%%%%%% y multiplied by 1000
> \psset{gridcolor=gray , gridwidth=0.4pt , gridlabels=0pt ,
> subgriddiv=1}
> \psgrid[xunit=500\psxunit,yunit=0.5\psyunit](0,0)(6,7)
> \footnotesize
> \psaxes[comma,Ox=1500,Dx=500,Dy=1,ylabelFactor=\cdot10^3]{->}(0,0)(0,0)(3000,3.5)
> \normalsize
> \psaxes[xunit=1cm,yunit=1cm](0,0)(-2mm,-2mm)(0,0)
> \def\m{3000}% moyenne
> \def\s{150}% écart type
> \newcommand*{\h}{1/(\s*sqrt(2*PI))*EXP((-0.5*(((x+1500)-\m)/\s)^2))}
> \psplot[algebraic,plotpoints=5000,linewidth=0.5pt,linecolor=red]{0}{3000}{\h*1000}
> % courbe de h sur [1500 ; 4500]
> \def\m{3000}% moyenne
> \def\s{300}% écart type
> \psplot[algebraic=true,plotpoints=5000,linewidth=0.5pt,linecolor=red]{0}{3000}{\h*1000}
> % courbe de h sur [1500 ; 4500]
> \psGauss[sigma=150,mue=3000,linecolor=green,yunit=1000]{0}{4000}
sorry, this wont work. I do not really know if we can modify
the \psGauss funktion
Herbert
> \uput[-90](3000,0){$x$}
> \uput[180](0,3.5){$y$}
> \end{pspicture}
>
> \end{document}
>
>
> Herbert
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/
>
More information about the PSTricks
mailing list