summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/doc/lineargraph0.asy
blob: fc344181d5133bda3e449a50e3fa6ab130743c67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import graph;

size(400,200,IgnoreAspect);

real Sin(real t) {return sin(2pi*t);}
real Cos(real t) {return cos(2pi*t);}

draw(graph(Sin,0,1),red,"$\sin(2\pi x)$");
draw(graph(Cos,0,1),blue,"$\cos(2\pi x)$");

xaxis("$x$",BottomTop,LeftTicks);
yaxis("$y$",LeftRight,RightTicks(trailingzero));

label("LABEL",point(0),UnFill(1mm));

add(legend(),point(E),20E,UnFill);