Next: , Previous: , Up: 1D samples   [Contents][Index]


3.5.20 Iris sample

Command iris draw Iris plot for columns of data array. The sample code is:

  mglData a("iris.dat");  a.Crop(0,4,'x');  a.Rearrange(4,50);
  gr->SubPlot(1,1,0,"");
  if(big!=3)	gr->Title("Iris sample");
  gr->Iris(a, "sepal\nlength;sepal\nwidth;petal\nlength;petal\nwidth", ". ", "value -1.5;size -2");
Example of Iris()