All,

I have this:

\startMPpage %figure library name: sec3q1

%initialize window parameters
numeric xmin, xmax, xscl, ymin, ymax, yscl;
xmin:=-10;
xmax:=10;
xscl:=1;
ymin:=-200;
ymax:=200;
yscl:=20;

%initialize number of points
numeric num_points;
num_points:=200;

%initialize dimensions of image
numeric width, height;
width=1.5in;
height=1.5in;

%create the grid
create_grid(xmin,xmax,xscl,ymin,ymax,yscl,width,height);

boolean lbl_scl; lbl_scl:=false;

%create the axes
create_axes(xmin,xmax,ymin,ymax,width,height,lbl_scl)("$x$")("$y$");

%draw the function
drawfcn("x","(x+6)*(x-1)* 
(x-5)",xmin,xmax,ymin,ymax,width,height,num_points,xmin,xmax)
withcolor blue ;

%initialize scale
numeric ux, uy;
(xmax-xmin)*ux=width;
(ymax-ymin)*uy=height;

%define polynomial
vardef f(expr x)=
(x+6)*(x-1)*(x-5)
enddef;

%label extrema
dotlabel.top(btex Local Maximum etex, (-3.2,f(-3.2)) xyscaled (ux,uy));
dotlabel.bot(btex Local Minimum etex, (3.2,f(3.2)) xyscaled (ux,uy));

\stopMPpage

What I'd like to do is typeset those "Local Maximum" and "Local  
Minimum" in the defaultfont at a size 2 pts smaller than the default.  
Any easy way to do this?
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to