[pstricks] A simple file

Denis Vergès Denis.Verges at wanadoo.fr
Thu Jun 23 14:10:28 CEST 2005


Hello,
Thanks for your quick help.

Finally I try :

\psset{xunit=0.8cm,yunit=2cm}
\begin{pspicture}(-0.5,-1)(15,7)
\psgrid[gridlabels=0pt,dy=1,Dy=500,subgriddiv=5,gridcolor=lightgray](0,0 
)(15,6)
\psaxes[linewidth=1.75pt,Dx=5,dy=1,Dy=500]{->}(0,0)(15,6)
\rput(15,-0.3){$x$} \rput(-0.5,6){$y$}
\uput[d](1,0){$1$}
\psplot[linewidth=2pt]{0}{15}{x 3 exp x  2 exp 10 mul  sub 25 x mul add  
1200 add 500 div}
\uput[u](13,4.2){$\mathcal{C}$}
\rput(7.5,-1){\textbf{ANNEXE EXERCICE 2 Partie B}}
\uput[dl](0,0){O}
\end{pspicture}

After six or seven use of PSTricks I begin to understand the subtleties  
of dy, Dy to have smalll numbers.

My irritating problem with \psgrid was here that I wanted 10 lines by  
xunit and 5 lines by yunit. That's the origin of the multido  
{}{}{\psline}.

Long life to PSTricks !

Denis Vergès
Le 23 juin 05, à 09:11, Herbert Voss a écrit :

> \documentclass[10pt]{article}
> \usepackage{pst-plot}
> \begin{document}
>
> \psset{xunit=0.8cm}
> \begin{pspicture}(-0.5,-1)(15,10)
> \psgrid[gridlabels=0pt,dy=1,Dy=400,subgriddiv=0,gridcolor=lightgray](0, 
> 0)(15,10)
> \psaxes[linewidth=1.75pt,dy=1,Dy=400]{->}(0,0)(15,10)
> \rput(15,-.80){$x$} \rput(-0.5,10){$y$}
> \uput[d](1,0){$1$}
> \psplot[linewidth=2pt]{0}{15}{x 3 exp x  2 exp 10 mul  sub 25 x mul  
> add 1200 add 400 div}
> \uput[u](13,.2){$\mathcal{C}$}
> \rput(7.5,-1){\textbf{ANNEXE EXERCICE 2 Partie B}}
> \end{pspicture}
>
> \end{document}




More information about the PSTricks mailing list