[pstricks] A simple file

Herbert Voss LaTeX at zedat.fu-berlin.de
Thu Jun 23 09:11:58 CEST 2005


Denis Vergès wrote:

> What's wrong in
> 
> \documentclass[10pt]{article}
> \usepackage{pstricks,pst-plot}
> \begin{document}
> \psset{xunit=0.8cm,yunit=0.004cm}
> \begin{pspicture}(0,0)(15,3000)
> \psaxes[linewidth=1.75pt]{->}(0,0)(15,3000)

you can use small values instead and divide your y values
of the function. In my case by 400. Also use \psgrid instead
of multido

\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}


Herbert




More information about the PSTricks mailing list