[NTG-context] Bug with macro tightfunction (Metafun)

Fabrice Couvreur fabrice1.couvreur at gmail.com
Mon Feb 16 18:00:03 CET 2015

This code generates an error while it was working fine a month ago.
Best regards,


     input hvdm;
     input tex;
     l:=3mm; r:=0.6; alfa:=45; beta:=0; gamma:=0;
     defineDefaultArrow (l, r, alfa, beta, gamma);
     numeric xmin, xmax, ymin, ymax;
     xmin := 0; xmax := 110; ymax :=8000 ;ymin:=0; u := 0.1cm; v:= 0.002cm;
     color mycolor; mycolor:=(0.4,0,0);
     drawoptions(withpen pencircle scaled 0.3pt withcolor
     draw hlingrid(ymin,ymax,1000,16cm,11cm);
     draw vlingrid(xmin,xmax,10,11cm,16cm);
     pickup pencircle scaled 1pt ;
     arrowline ((xmin,0) -- (xmax,0)) scaled u;
     arrowline ((0,ymin) -- (0,ymax)) scaled v;
     drawoptions(withpen pencircle scaled 1pt);
     draw tightfunction ("x", "x*x-84*x+5000", 0, 100, 0.01) xyscaled (u,v);
     for i=0 step 10 until 100:
     for i=0 step 1000 until 7000:
   label.top("Nombre de lots",(90u,50v));
   label.lrt(btex $f(x)$ (en euros) etex,(0,7800v));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150216/22e4d054/attachment.html>

More information about the ntg-context mailing list