You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently, none of gp << "set output";, gp << std::flush;, gp.do_flush() can do proper flushing of output svg file, if it's done without destructing the gp instance. I keep getting an empty output file. I guess, the library does not offer any explicit flushing API. Is there any workaround?
Thanks!
The text was updated successfully, but these errors were encountered:
I don't know. gp.do_flush() sends std::flush to boost::iostreams::stream and then calls fflush on the underlying file handle. If data is not getting through, it's probably held up in boost::iostreams. You can check whether boost has any extra flush functions. Make sure you're putting a newline at the end of each gnuplot command.
Apparently, none of
gp << "set output";
,gp << std::flush;
,gp.do_flush()
can do proper flushing of output svg file, if it's done without destructing thegp
instance. I keep getting an empty output file. I guess, the library does not offer any explicit flushing API. Is there any workaround?Thanks!
The text was updated successfully, but these errors were encountered: