#include #include "c:\dislin\dislin.h" using namespace std; main(){ int nop=4; float x[5]={1,2,3,4,5}; float y[5]={1,3,2,1.5,4}; float x2[5]={1,2,3,4,5}; float y2[5]={1.5,2.5,2.7,1,1.5}; //screen: "cons" metafl("cons"); // metafl("ps"); //setfil("scat.ps"); disini(); height(50); complx(); linwid(2); axspos(350,1800); ticpos("revers","xyz"); // polcrv("hi"); //GRAF (XA, XE, XOR, XSTEP, YA, YE, YOR, YSTEP) level 1 //XA, XE are the lower and upper limits of the X-axis. //XOR, XSTEP are the first X-axis label and the step between labels. //YA, YE are the lower and upper limits of the Y-axis. //YOR, YSTEP are the first Y-axis label and the step be- // tween labels. graf(-0.5f, 5.f, 0.f, 1.f, -0.5f, 5.f, 0.f, 1.f); //nx=nxposn(1.f); //ny=nyposn(8.f); //color("yellow"); //-1 no line 0 nosymbol 1 symbol and line incmrk(-1); // symbol marker(1); messag("This is a dislin scatter plot",400,100); curve(x,y,nop); incmrk(1); marker(3); curve(x2,y2,nop); disfin(); // metafl("PDF"); }