From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- graphics/asymptote/doc/datagraph.asy | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 graphics/asymptote/doc/datagraph.asy (limited to 'graphics/asymptote/doc/datagraph.asy') diff --git a/graphics/asymptote/doc/datagraph.asy b/graphics/asymptote/doc/datagraph.asy new file mode 100644 index 0000000000..62cca8ea89 --- /dev/null +++ b/graphics/asymptote/doc/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})); -- cgit v1.2.3