Site
Navigation:


Main
Tutorial
Reference
Download
Installation
Screen Shots
Credits

SourceForge Logo

Example code segments and their output

std::vector histogram plot

  pgstream pout(pgplot,x11);

  float a[] = {1.0, 2.0, 6.0, 4.0, 0.5};
  vector<float> av(a,a+5);

  pout << title("Simple plot") << x_lab("index") << y_lab("value")
       << histogram_plot(av).set_color(red).set_line_style(dashed)
       << point_plot(av).set_point_symbol(circle)
       << endp;