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


3.5.12 BoxPlot sample

Function boxplot draw box-and-whisker diagram. The sample code is:

int sample(mglGraph *gr)
{
  mglData a(10,7);  a.Modify("(2*rnd-1)^3/2");
  gr->SubPlot(1,1,0,"");  gr->Title("Boxplot plot");
  gr->Box();  gr->BoxPlot(a);
  return 0;
}
Example of BoxPlot()