alandefreitas / matplotplusplus

Matplot++: A C++ Graphics Library for Data Visualization 📊🗾
https://alandefreitas.github.io/matplotplusplus/
MIT License
4.23k stars 325 forks source link

std::runtime_error #408

Open LorraineWen opened 3 months ago

LorraineWen commented 3 months ago

The exception at 0x00007FFDADE1F39C (located in vcpkgtest.exe) is an unhandled exception: Microsoft C++ exception: std::runtime_error, at memory location 0x0000009D7A9AE9F8.

image

I used matplotplusplus in VS2022 with Debug and Release mode,but all failed

LorraineWen commented 3 months ago

//this is my procedure

include <matplot/matplot.h>

int main() { using namespace matplot;

std::vector<double> x = { 1, 2, 3, 4, 5 };
std::vector<double> y = { 1, 4, 2, 5, 3 };

plot(x, y);
show();

return 0;

}

leha-bot commented 3 months ago

It seems that your OS couldn't open the pipe for gnuplot subprocess.. 🤔

alandefreitas commented 3 months ago

It just can't open and run the command gnuplot -e "set terminal" wxt for some reason. Usually, because Gnuplot is not installed. You can check that in the command line.

LorraineWen commented 2 months ago

It just can't open and run the command gnuplot -e "set terminal" wxt for some reason. Usually, because Gnuplot is not installed. You can check that in the command line.

thanks,solved

LorraineWen commented 2 months ago

It seems that your OS couldn't open the pipe for gnuplot subprocess.. 🤔

thanks