plain_Label.asy 中的渐近线错误

plain_Label.asy 中的渐近线错误

我正在尝试编译 Asymptotefig0090.asy脚本

http://www.piprime.fr/files/asymptote/graph3/index.html

通过在命令行中运行asy fig0090.asy,但我收到错误

/usr/local/texlive/2015/texmf-dist/asymptote/plain_Label.asy: 670.23: reading array of length 2 with out-of-bounds index 2

我正在使用Ubuntu 14.04 LTS 64 bit并且我的TexLive 2015发行版是最新的。

内容fig0090.asy

size(12cm,0,false);
import graph3;
import contour;
import palette;

texpreamble("\usepackage{icomma}");

real f(pair z) {return z.x*z.y*exp(-z.x);}

currentprojection=orthographic(-2.5,-5,1);

draw(surface(f,(0,0),(5,10),20,Spline),palegray,bp+rgb(0.2,0.5,0.7));

scale(true);

xaxis3(Label("$x$",MidPoint),OutTicks());
yaxis3(Label("$y$",MidPoint),OutTicks(Step=2));
zaxis3(Label("$z=xye^{-x}$",Relative(1),align=2E),Bounds(Min,Max),OutTicks);

real[] datumz={0.5,1,1.5,2,2.5,3,3.5};

Label[] L=sequence(new Label(int i) {
    return YZ()*(Label(format("$z=%g$",datumz[i]),
                       align=2currentprojection.vector()-1.5Z,Relative(1)));
  },datumz.length);

pen fontsize=bp+fontsize(10);
draw(L,lift(f,contour(f,(0,0),(5,10),datumz)),
     palette(datumz,Gradient(fontsize+red,fontsize+black)));

答案1

我认为您需要将 PostScript 升级到 9.15 或更高版本。请参阅此处的讨论。 http://sourceforge.net/p/asymptote/discussion/409349/thread/c5f124db/

相关内容