Skip to content

Error in 1st example #312

@dgaul

Description

@dgaul

When I run the standard minimal example

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

I receive a memory access error. Output: the plot shows up and I receive the error message "Memory access error (memory dump written)".

Screenshot_20220525_150026

I compiled the program using

g++ -std=c++11 -W -o test test.cpp -I/home/username/anaconda3/include/python3.7m/ -I/home/username/anaconda3/lib/python3.7/site-packages/numpy/core/include -L/home/username/anaconda3/lib/ -lpython3.7m

as described in the docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions