summaryrefslogtreecommitdiff
path: root/graphics/asymptote/doc/datagraph.asy
blob: 62cca8ea8968799a2a275f57ab7afc07b0d62233 (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(8pt)),new real[]{0,4,9}));