summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/logdown.asy
blob: 25d10ed978ea5330481ae708da03e15a9039e138 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import graph;
size(200,IgnoreAspect);

real log10Down(real x) {return -log10(x);}
real pow10Down(real x) {return pow10(-x);}

scaleT LogDown=scaleT(log10Down,pow10Down,logarithmic=true);
scale(Linear,LogDown);

draw(graph(exp,-5,5));

yaxis("$y$",RightTicks(Label(Fill(white)),DefaultLogFormat),BeginArrow);
xaxis("$x$",LeftTicks(NoZero),EndArrow);