mateogianolio / matplotnode Goto Github PK
View Code? Open in Web Editor NEWC++ bindings for Node.js exposing a subset of matplotlib's functionality through the CPython API.
License: MIT License
C++ bindings for Node.js exposing a subset of matplotlib's functionality through the CPython API.
License: MIT License
Hello, Just wondering if it's a big challenge to make it work w/ python3. rgds
Hello,
I have the same issue as here but do not really understand how to resolve it.
matplotlib works when used with python.
I am on ubuntu 18.04, python 2.7 (but I have 3 too), matplotlib 2.2.4, numpy 1.16.3, matplotnode 0.3.1.
Thank you
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'matplotnode' ]
2 info using [email protected]
3 info using [email protected]
4 verbose stack SyntaxError: Error parsing C:\Program Files\nodejs\node_modules\npm\node_modules\request\node_modules\har-validator\node_modules\is-my-json-valid\node_modules\generate-object-property\node_modules\is-property\package.json: Unexpected end of input
4 verbose stack at Object.parse (native)
4 verbose stack at readPackage (module.js:81:52)
4 verbose stack at tryPackage (module.js:91:13)
4 verbose stack at Function.Module._findPath (module.js:153:20)
4 verbose stack at Function.Module._resolveFilename (module.js:323:25)
4 verbose stack at Function.Module._load (module.js:276:25)
4 verbose stack at Module.require (module.js:353:17)
4 verbose stack at require (internal/module.js:12:17)
4 verbose stack at Object. (C:\Program Files\nodejs\node_modules\npm\node_modules\request\node_modules\har-validator\node_modules\is-my-json-valid\node_modules\generate-object-property\index.js:1:80)
4 verbose stack at Module._compile (module.js:409:26)
5 verbose cwd C:\Users\SZI\Desktop\matplotnode-master\matplotnode-master
6 error Windows_NT 6.1.7601
7 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "matplotnode"
8 error node v4.5.0
9 error npm v2.15.9
10 error path C:\Program Files\nodejs\node_modules\npm\node_modules\request\node_modules\har-validator\node_modules\is-my-json-valid\node_modules\generate-object-property\node_modules\is-property\package.json
11 error Error parsing C:\Program Files\nodejs\node_modules\npm\node_modules\request\node_modules\har-validator\node_modules\is-my-json-valid\node_modules\generate-object-property\node_modules\is-property\package.json: Unexpected end of input
12 error If you need help, you may report this error at:
12 error https://github.com/npm/npm/issues
13 verbose exit [ 1, true ]
Hello,
I am trying to use matplotnode on a docker container but I am getting this exception when a try to save the image. I don't need to show the graphic, only save the image.
Exception _tkinter.TclError: 'no display name and no $DISPLAY environment variable' in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
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?
ERROR: Command "python setup.py egg_info" failed with error code 1 in /data/data/com.termux/files/usr/tmp/pip-install-yojv3vha/matplotlib/
It says I am missing freetype and png, but I have uninstalled and reinstalled them. For some reason, it is not recognizing that the packages are there.
Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.