eget: older gnuplot support

This commit is contained in:
Matej Sekoranja
2014-03-26 20:06:04 +01:00
parent 9a1cffd666
commit 05b91a20a1

View File

@@ -764,7 +764,7 @@ void formatNTImage(std::ostream& /*o*/, PVStructurePtr const & pvStruct)
*/
//eget -s testImage | gnuplot -e "set size ratio -1; set palette grey; set cbrange [0:255]; plot '-' binary array=(512,384) flipy format='%uchar' with image"
FILE* gnuplotPipe = popen ("gnuplot -p", "w");
FILE* gnuplotPipe = popen ("gnuplot -persist", "w"); // use -persist for backward compatibility (to support older gnuplot versions)
const char *prologue = getenv("EGET_GNUPLOT_PROLOGUE");
if (prologue)