#include <gnuplot_i.h>
#include <stdlib.h>

int main() {
  gnuplot_ctrl    *h1;
  h1 = gnuplot_init();
  gnuplot_setstyle(h1, "lines");
  gnuplot_plot_equation(h1, "sin(x)", "my eq");
  sleep(3);
  gnuplot_close(h1);
  return 0;
}
