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

size(200,150,IgnoreAspect);

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

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

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

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