[NTG-context] Strange behavior with Metapost

Fabrice Couvreur fabrice1.couvreur at gmail.com
Tue May 27 22:19:14 CEST 2014

Why curve drawn is not that expected ?

     input hvdm;
     l:=2.8mm; r:=0.6; alfa:=45; beta:=0; gamma:=0;
     defineDefaultArrow (l, r, alfa, beta, gamma);
     numeric xmin, xmax, ymin, ymax;
     xmin :=-2; xmax := 4; ymax :=5 ;ymin:=-1; u := 1cm;
     pickup pencircle scaled 1pt ;
     drawarrow ((xmin,0) -- (xmax,0)) scaled u;
     drawarrow ((0,ymin) -- (0,ymax)) scaled u;
     draw tightfunction ("x", "2*(x-1)*(x-1)+2", xmin, xmax,
     scaled u;
     setbounds currentpicture to boundingbox (((xmin,ymin) --
     (xmax,ymax)) scaled u);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20140527/2142a4a4/attachment.html>

More information about the ntg-context mailing list