graph - How to plot data by c program? - Stack Overflow pbPlots is very easy to use and works with all C compilers Download pbPlots c h and supportLib c h from the github page and include them in your build Here is a complete example that will produce a plot in a PNG-file
Getting Started with C++ and InfluxDB | InfluxData The full code for inserting data in your database and plotting a graph is as follows Also, note that the graph is drawn from the pbPlots utility available in the Cpp directory The pbPlots cpp, pbPlots hpp, supportLib cpp, and supportLib hpp files are copied from the cxx-influxdb-example directory and added to the CMakeLists txt file