diff options
Diffstat (limited to 'Master/texmf-dist/doc/asymptote/examples/logimage.asy')
-rw-r--r-- | Master/texmf-dist/doc/asymptote/examples/logimage.asy | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/asymptote/examples/logimage.asy b/Master/texmf-dist/doc/asymptote/examples/logimage.asy new file mode 100644 index 00000000000..65d6bb53111 --- /dev/null +++ b/Master/texmf-dist/doc/asymptote/examples/logimage.asy @@ -0,0 +1,22 @@ +import graph; +import palette; + +size(10cm,10cm,IgnoreAspect); + +real f(real x, real y) { + return 0.9*pow10(2*sin(x/5+2*y^0.25)) + 0.1*(1+cos(10*log(y))); +} + +scale(Linear,Log,Log); + +pen[] Palette=BWRainbow(); + +bounds range=image(f,Automatic,(0,1),(100,100),nx=200,Palette); + +xaxis("$x$",BottomTop,LeftTicks,above=true); +yaxis("$y$",LeftRight,RightTicks,above=true); + +palette("$f(x,y)$",range,(0,200),(100,250),Top,Palette, + PaletteTicks(ptick=linewidth(0.5*linewidth()))); + + |