From 976618c3a3d5706f815c466d858cd96e9bce08ff Mon Sep 17 00:00:00 2001 From: Maurizio Tomasi Date: Wed, 16 Dec 2020 08:57:58 +0100 Subject: [PATCH 1/4] Add fflush to Gnuplot::sendcommand --- gplot++.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gplot++.h b/gplot++.h index 14d2c47..0d23312 100644 --- a/gplot++.h +++ b/gplot++.h @@ -150,6 +150,8 @@ class Gnuplot { fputs(str, connection); fputc('\n', connection); + fflush(connection); + return true; } From d94be7d9ef0c65a67621087f3563201dfbfad477 Mon Sep 17 00:00:00 2001 From: Maurizio Tomasi Date: Wed, 16 Dec 2020 08:58:41 +0100 Subject: [PATCH 2/4] Add a request for keypress in example-simple --- example-simple.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/example-simple.cpp b/example-simple.cpp index 9a025bf..e0e351d 100644 --- a/example-simple.cpp +++ b/example-simple.cpp @@ -22,6 +22,7 @@ */ #include "gplot++.h" +#include #include int main(void) { @@ -33,4 +34,7 @@ int main(void) { << "\n"; gnuplot.plot(x, y); gnuplot.show(); + + std::cout << "Press any key to quit..."; + std::getchar(); } From 108538725fd280ed9e63da7f44d71d62a3efa834 Mon Sep 17 00:00:00 2001 From: Maurizio Tomasi Date: Wed, 16 Dec 2020 09:30:03 +0100 Subject: [PATCH 3/4] Bump version number to 0.2.1 --- gplot++.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gplot++.h b/gplot++.h index 0d23312..2c97c7d 100644 --- a/gplot++.h +++ b/gplot++.h @@ -50,7 +50,7 @@ #include #endif -const unsigned GNUPLOTPP_VERSION = 0x000200; +const unsigned GNUPLOTPP_VERSION = 0x000201; const unsigned GNUPLOTPP_MAJOR_VERSION = (GNUPLOTPP_VERSION & 0xFF0000) >> 16; const unsigned GNUPLOTPP_MINOR_VERSION = (GNUPLOTPP_VERSION & 0x00FF00) >> 8; const unsigned GNUPLOTPP_PATCH_VERSION = (GNUPLOTPP_VERSION & 0xFF); From ce308ab8a0c7e89aca25786b9698dff497dc5211 Mon Sep 17 00:00:00 2001 From: Maurizio Tomasi Date: Wed, 16 Dec 2020 09:35:00 +0100 Subject: [PATCH 4/4] Update changelog in README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 288424e..a2c0fa0 100644 --- a/README.md +++ b/README.md @@ -344,6 +344,11 @@ ones I referenced while developing my own's: ## Changelog +### v0.2.1 + +- Ensure that commands sent to Gnuplot are executed immediately + ([#1](https://github.com/ziotom78/gplotpp/pull/1)) + ### v0.2.0 - New constants `GNUPLOTPP_VERSION`, `GNUPLOTPP_MAJOR_VERSION`,