[pstricks] dimension too large

Germain Boyer germain.boyer at ac-toulouse.fr
Thu Nov 26 17:40:32 CET 2015


Bonjour,

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}
%
\begin{pspicture}(-500,-0.001)(3000,0.0035)
%
\psset{gridcolor=gray , gridwidth=0.4pt , gridlabels=0pt , subgriddiv=1}
%
\psgrid[xunit=500\psxunit,yunit=0.0005\psyunit](0,0)(! 3000 500 div \space  
0.0035 0.0005 div)
%
\footnotesize
\psaxes[comma=true,Ox=1500,Dx=500,Dy=0.0005]{->}(0,0)(0,0)(3000,0.0035)
\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=true,plotpoints=5000,linewidth=0.5pt,linecolor=red]{0}{3000}{\h}  
% 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}  
% courbe de h sur [1500 ; 4500]
%
\psGauss[sigma=150,mue=3000,linecolor=green]{0}{4000}
%
\uput[-90](3000,0){$x$}
\uput[180](0,0.0035){$y$}
\end{pspicture}
%
\end{document}

With yunit=12000cm i get the message dimension too large.
yunit=575cm seems the maximum value for yunit.

Is it possible to have a value bigger than 575cm to increase the height of  
the pspicture ?

Is it possible to plot \h with \psGauss ?

Thanks for your answers.

Germain



More information about the PSTricks mailing list