summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/asymptote/examples/filegraph.asy
blob: c56dd0234f336b0de8035e8e611b6055db3a1c5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import graph;

size(200,150,IgnoreAspect);

file in=line(input("filegraph.dat"));
real[][] a=dimension(in,0,0);
a=transpose(a);

real[] x=a[0];
real[] y=a[1];

draw(graph(x,y),red);

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