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