<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
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.<br><br>Thanks for your help.<br>Adam.<br><br><br>\input pst-plot.tex<br><br>\def\mymacro#1#2#3#4{%<br>\pspicture(#1,#2)(#3,#4)<br>\psgrid<br>\pspicture*(#1,#2)(#3,#4)<br>\psgrid<br>}<br><br>\def\endmymacro{%<br>\endpspicture<br>\endpspicture<br>}<br><br><br>% Use<br>\mymacro{1}{1}{3}{3}<br>%\fileplot{mydata.dat}<br>\psdot(2,2)<br>\endmymacro<br><br>\bye<br><br /><hr />
Upgrade to Internet Explorer 8 Optimised for MSN. <a href='http://extras.uk.msn.com/internet-explorer-8/?ocid=T010MSN07A0716U' target='_new'>Download Now</a></body>
</html>