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


3.5.16 Mark sample

Function mark draw markers at points. It is mostly the same as Plot but marker size can be variable. The sample code is:

int sample(mglGraph *gr)
{
  mglData y,y1; mgls_prepare1d(&y,&y1);
  gr->SubPlot(1,1,0,"");  gr->Title("Mark plot (default)");
  gr->Box();  gr->Mark(y,y1,"s");
  return 0;
}
Example of Mark()