gnuplot flashing for some examples
Bug category
- [ ] bug - compilation error
- [ ] bug - compilation warning
- [X] bug - runtime error
- [ ] bug - runtime warning
- [ ] bug - logic error
Describe the bug Hello,
First thanks for the initiative, a good Data Visualization tool in C++ as intuitive as Matlab has been missing for a long time.
Regarding the bugs I encountered, a lot of examples are not working for me (plot, mesh, surf, geobullble,...) but some are (example_area_*.exe). By not working I mean, the gnuplot.exe flash the initial figure window without the plot and then disappear but I still see it is running in the task bar. I am unable to see the actual window on screen and if I hover my mouse on the taskbar icon I see an empty figure as preview
.
There are no error messages in the console. I tested all the demos of gnuplot (5.2.8) and they work fine, the path is added to my environment variables.
Build: x64 (any of Release, Debug, MinSizeRel, ReWithDebInfo)
Do you have an idea what I am doing wrong ?
Thanks, Marc
Steps to Reproduce
# Your steps go here
mkdir build
cd build
cmake .. <options> -DCMAKE_BUILD_TYPE=Release
Output
# Press ENTER to continue...
Platform
- [ ] cross-platform issue - linux
- [X] cross-platform issue - windows
- [ ] cross-platform issue - macos
Environment Details:
- OS: Windows 10 Home
- OS Version: 10.0.18363 Build 18363
- Compiler: MVSC
- Compiler version: 19.27.29111
Additional context
try use wxwidget for gnuplot, that solved it for me.
Thanks for the fast feedback! @xnorpx to confirm, you mean to build the WXT terminal of gnuplot based on wxwidget, cairo and pango libraries ?
I use prebuilt package of gnuplot and just installed with wxwidget frontend (installer allows you to choose between windows/wx/qt)
Thanks a lot, I tried the different versions of the frontend only the wx allows me to display the examples.
Matplot++ will choose a terminal in this order:
- The terminal in your GNUTERM environment variable, if available
- Wxt, if available
- Qt, if available
- Default gnuplot terminal
(https://github.com/alandefreitas/matplotplusplus/blob/7b3c04281bc53fad77435d4f79b75fb228ebe87e/source/matplot/backend/gnuplot.cpp#L40
People have been complaining a lot about the Qt terminal on windows, but sometimes their GNUTERM variable is set to Qt. Maybe the installer is setting it. We can always adapt these heuristics if we have to.