Skip to content

stjordanis/plotcpp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

plotcpp

This is a thin C++ wrapper for gnuplot program, it was made to simplify ploting data from C++ programms in binary format. Now it supprot only a small subset of gnuplot functionality, but allows to pass any gnuplot command as string.

Usage example

  std::vector<float> y;
  std::vector<float> x;  

  Plot plt(persist_gnuplot_window);
  plt.SetTerminal("qt");
  plt.SetTitle("Sine");
  plt.SetXLabel("X");
  plt.SetYLabel("Y");
  plt.SetAutoscale();

  plt.Draw2D(Lines(x.begin(), x.end(), y.begin(), "lines"),
             Points(x.begin(), x.end(), y.begin(), "points"));

  plt.Flush();

output

Please look at example.cpp file for details.

About

C++ wrapper for gnuplot

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.1%
  • CMake 1.9%