[NTG-context] Metapost and Metafun

2014-05-21 Thread Fabrice Couvreur
Hi, As PSTricks (which I prefer) is not yet well integrated, I decided to learn Metapost starting with a simple code. \starttext \startMPcode numeric xmin, xmax, ymin, ymax; xmin := -2.5; xmax := 2.5; ymax :=2.5 ;ymin:=-2.5; u := 2cm; vardef f(expr x) = -x*x+1 enddef; xinc := 0.001; path pts_f;

Re: [NTG-context] Metapost and Metafun

2014-05-21 Thread Hans Hagen
On 5/21/2014 7:55 PM, Fabrice Couvreur wrote: Hi, As PSTricks (which I prefer) is not yet well integrated, I decided to learn Metapost starting with a simple code. \starttext \startMPcode numeric xmin, xmax, ymin, ymax; xmin := -2.5; xmax := 2.5; ymax :=2.5 ;ymin:=-2.5; u := 2cm; vardef f(expr

Re: [NTG-context] Metapost and Metafun

2014-05-21 Thread Fabrice
Hi Hans, Thank you for the code that is cleaner and certainly less long! Fabrice PS : What do you mean by: define 'improve' .. anyway: A step of 0.001 is not needed here and gives a*pretty large path*. ___ If