summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/scaledgraph.asy
blob: 408c10cc5823f7295cb0f3511767b24cac6bbf3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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));