[pstricks] psgrid and psgraph

Herbert Voss Herbert.Voss at FU-Berlin.DE
Mon May 2 10:39:34 CEST 2011


Am 02.05.2011 09:19, schrieb Denis Bitouzé:

>> -5cm is absolutely senseless.
>
> Yes, I know :) It was just a test and I wanted to add a grid in order
> to visually explain the roles of llx and lly.
>
>> \psgrid takes these values also into account. ->  \pspicture(-5,-1)(3,9)
>
> I'm not sure to understand well when it is best to use pspicture or
> psgraph...

psgraph does the scaling for you, pspicture not.

> Yes, but I /want/ to show the effect of llx and lly :)
>
>> However, if you want a grid then use the keywords
>> xticksize and yticksize.

ok, then use it this way, if you want to show the meaning
of llx,lly,urx,ury

\documentclass{article}
\usepackage{pst-plot}
\newpsstyle{fill}{linecolor=black!10,fillstyle=solid,
                   fillcolor=black!10,framesep=0pt}
\begin{document}
\psframebox[style=fill]{%
%\psset{llx=-5cm,lly=-1cm}
\begin{psgraph}(0,0)(3.0,9.0){4cm}{5cm}
\end{psgraph}}

\vspace{1cm}
\psframebox[style=fill]{%
\psset{llx=-5mm,lly=-5mm,urx=3mm,ury=4mm}
\begin{psgraph}(0,0)(3.0,9.0){4cm}{5cm}
\end{psgraph}}

\end{document}

Herbert


More information about the PSTricks mailing list