Open Extra-Creativity opened 2 years ago
While trying to debug this issue, I found that adding \n
in the figure_type.cpp file here:
void figure_type::run_terminal_init_command() {
std::stringstream ss;
auto &terminal = backend_->output_format();
ss << "\nset terminal " + terminal;
stops the aforementioned errors from showing up in the terminal output. However, the flashing of the plot still happens. Does it make sense for an extra \n
in the pipe output to fix the split output of these commands from happening?
Bug category I don't know whether it's a warning or an error.
Describe the bug In Windows 10, I use CMake to install matplot++ and install gnuplot 5.4.4 on its website. I've chosen wxt as default when installing. I just ran the example code:
However, the cmd Terminal prompts several lines:
It's definitely NOT your intention to produce such lines when running example code. This is also mentioned in issue #243 and discussion #267 ,and both of them have been reported for a long time without ANY valid solution. Besides, when running this code, the plot screen will also flash several times, and I suspect that's related with the error/warning info. The final plot is right, but that's a miserable course to get lots of weird output and flashes to just get one plot.
I regard this project as an alternative to python's matplotlib, so hopefully you can do better and better.
Steps to Reproduce I've mentioned above.
Platform
Environment Details: