diff options
Diffstat (limited to 'Master/texmf/doc/asymptote/examples/scaledgraph.asy')
-rw-r--r-- | Master/texmf/doc/asymptote/examples/scaledgraph.asy | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Master/texmf/doc/asymptote/examples/scaledgraph.asy b/Master/texmf/doc/asymptote/examples/scaledgraph.asy new file mode 100644 index 00000000000..408c10cc582 --- /dev/null +++ b/Master/texmf/doc/asymptote/examples/scaledgraph.asy @@ -0,0 +1,15 @@ +import graph; + +axiscoverage=0.9; +size(200,IgnoreAspect); + +real[] x={-1e-11,1e-11}; +real[] y={0,1e6}; + +real xscale=round(log10(max(x))); +real yscale=round(log10(max(y)))-1; + +draw(graph(x*10^(-xscale),y*10^(-yscale)),red); + +xaxis("$x/10^{"+(string) xscale+"}$",BottomTop,LeftTicks); +yaxis("$y/10^{"+(string) yscale+"}$",LeftRight,RightTicks(trailingzero)); |