Skip to content

Could not import matplotlib.pyplot #2

Description

@metbosch

I'm trying to use the module but I'm not able to make it work.
I get the following error when run the first module call:

me@computer:~/test$ node
> const plt = require('matplotnode');
undefined
> plt.plot([0,1], [5.5,6.5]);
Could not import matplotlib.pyplot.
Segmentation fault (core dumped)

I think that python and matplotlib are well installed. When I run the following code a new window appear with the plot:

me@computer:~/test$ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
>>> plt.plot([0,1], [5.5,6.5])
[<matplotlib.lines.Line2D object at 0x7fad157bac50>]
>>> plt.show()

I'm running on Ubuntu 16.04. Have you any idea about what I'm doing wrong?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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