summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/asymptote/examples/xsin1x.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf/doc/asymptote/examples/xsin1x.asy')
-rw-r--r--Master/texmf/doc/asymptote/examples/xsin1x.asy8
1 files changed, 7 insertions, 1 deletions
diff --git a/Master/texmf/doc/asymptote/examples/xsin1x.asy b/Master/texmf/doc/asymptote/examples/xsin1x.asy
index e419ba19a69..cf394efb1a6 100644
--- a/Master/texmf/doc/asymptote/examples/xsin1x.asy
+++ b/Master/texmf/doc/asymptote/examples/xsin1x.asy
@@ -14,5 +14,11 @@ size(pic,50,IgnoreAspect);
xaxis(pic,red);
yaxis(pic,red);
draw(pic,graph(pic,f,-0.1/pi,0.1/pi,1000));
-attach(bbox(pic,blue),point(N+0.85W),10SE);
+
+add(new void(frame f, transform t) {
+ frame G=shift(point(f,N+0.85W))*align(bbox(pic,blue),10SE);
+ add(f,G);
+ draw(f,t*box(min(pic,user=true),max(pic,user=true)),blue);
+ draw(f,point(G,E)--t*point(pic,W),blue);
+ });