diff options
Diffstat (limited to 'Master/texmf/doc/asymptote/examples/lineargraph0.asy')
-rw-r--r-- | Master/texmf/doc/asymptote/examples/lineargraph0.asy | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Master/texmf/doc/asymptote/examples/lineargraph0.asy b/Master/texmf/doc/asymptote/examples/lineargraph0.asy new file mode 100644 index 00000000000..fc344181d51 --- /dev/null +++ b/Master/texmf/doc/asymptote/examples/lineargraph0.asy @@ -0,0 +1,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); |