lava / matplotlib-cpp

Extremely simple yet powerful header-only C++ plotting library built on the popular matplotlib
MIT License
4.38k stars 1.13k forks source link

Minimal example throws exception #279

Open Ilmu011 opened 3 years ago

Ilmu011 commented 3 years ago

I am trying to run the minimal example like this:

#define WITHOUT_NUMPY

#include "matplotlibcpp.h"
namespace plt = matplotlibcpp;
int main() {
    plt::plot({ 1,3,2,4 });
    plt::show();
}

However, at execution, an error occurs:

error

This is very similar to an issue (#187) that was already closed a while ago and to which a solution is supposedly already live but the OP mentioned that that didn't actually fix the problem for them.

I'm running on Windows 10 Visual Studio 2019. 64-Bit target machine and Python 3.9

physolve commented 3 years ago

Hi, I made the project preferences like here https://github.com/lava/matplotlib-cpp/issues/277 It worked for me