gBeginDraw (p,id);
gComment (p,"This is a comment in the metafile");
gSetColor (p,BLACK);
gSetFont (p,TIMES,fontsize,Normal,0);
gBoxWithText (p,x,y,w,h,fontsize,"phi/rad","sin(phi)",NULL);
gXAxis (p,0,1.0f,2.0f*PI,1);
gYAxis (p,-1.5f,0.5f,1.5f,1);
gSetStyle (p,1);
gXGrid (p);
gYGrid (p);
gSetStyle (p,0);
gSetColor (p,RED);
gLine (p,d->x,d->y,d->n);
gSetColor (p,BLUE);
gLine (p,xf,yf,2);
gRightYAxis (p,0.0f,0.5f,2.0f,1);
gText (p,x+w/2,y-fontsize*2,"Date: 09-MAR-2002",ALIGN_CENTER);
oldfontsize = fontsize;
fontsize = 20;
gSetFont (p,TIMES,fontsize,Bold,1);
gText (p,x+w/2,y-oldfontsize*4,"This is a Diagram",ALIGN_CENTER);
gEndDraw (p);
|