summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/asymptote/examples/datagraph.asy
blob: 299b1594a0fdde1cc6ffaa820969b1bd526bdcce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import graph;

size(200,150,IgnoreAspect);

real[] x={0,1,2,3};
real[] y=x^2;

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

xaxis("$x$",BottomTop,LeftTicks);
yaxis("$y$",LeftRight,
      RightTicks(Label(fontsize(8)),new real[]{0,4,9}));