[pstricks] Nested pspicture environment

Adam Fenn acwfenn at hotmail.com
Wed Jul 1 16:24:27 CEST 2009


How can one define a macro with nested \pspicture so that both have the same origin. My attempt below only works if the first two coordinates are 0. I assume the answer involves \rput but I don't know how to make it start in \mymacro and end in \endmymacro.

Thanks for your help.
Adam.


\input pst-plot.tex

\def\mymacro#1#2#3#4{%
\pspicture(#1,#2)(#3,#4)
\psgrid
\pspicture*(#1,#2)(#3,#4)
\psgrid
}

\def\endmymacro{%
\endpspicture
\endpspicture
}


% Use
\mymacro{1}{1}{3}{3}
%\fileplot{mydata.dat}
\psdot(2,2)
\endmymacro

\bye

_________________________________________________________________
Get the best of MSN on your mobile
http://clk.atdmt.com/UKM/go/147991039/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20090701/49392543/attachment.html>


More information about the PSTricks mailing list