On Fri, 1 Apr 2011, Tim Steenvoorden wrote:
(Untested).
\startuniqueMPgraphic{wave}
numeric periods, width;
path wave;
periods := 3 + 1/4;
width := periods * 2*pi;
wave := origin for x=0 step 0.1 until width:
-- (x,x*sin(x))
endfor;
pickup pencircle scaled 1pt;
draw wave xscaled (OverlayWidth/width) yscaled (OverlayHeight/(2*width));
setbounds currentpicture to boundingbox OverlayBox ;
\stopuniqueMPgraphic
Does setting the bounds of the current picture help?
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________