matplotlib-cpp icon indicating copy to clipboard operation
matplotlib-cpp copied to clipboard

Non blocking plt::show(false) does not work under Windows

Open hahne opened this issue 5 years ago • 1 comments

I tried it with Python2.7 and Python3 in Visual Studio 2019. In both cases the plot window freezes if I use plt::show(false);. Just plt::show(); works for me. E.g. the following does not work:

    std::vector<float> test_values = { 1.0f, 3.0f, 2.0f };
    plt::plot(test_values);
    plt::show(false);
    while (1)
    {

    }

hahne avatar Nov 06 '19 11:11 hahne

have you tried adding plt::pause(0.01)?

Benjamin-Tan avatar Dec 20 '20 11:12 Benjamin-Tan