Flush the pipe after having sent a command by ziotom78 · Pull Request #1 · ziotom78/gplotpp (original) (raw)
This commit forces the library to send commands to Gnuplot every time a plot, histogram, or plot3d method is invoked.
This enables the possibility to use the Gnuplot window interactively in example-simple.cpp. A call to std::getchar has been added to ensure that Gnuplot is still running if the user wants to interact with the window.
- Add
fflushto Gnuplot::sendcommand - Add a request for keypress in example-simple