C++ bindings for Node.js exposing a subset of matplotlib's functionality through the CPython API. Inspired by matplotlib-cpp by lava. Useful for scientific plotting.
$ npm install matplotnode
var plt = require('matplotnode');
You need to have Python 2.7 and matplotlib installed for the bindings to work.
-
plot([x], y, ...kwargs)
* -
scatter(x, y, ...kwargs)
* -
subplot(str)
-
show()
-
legend()
-
grid(bool active)
-
save(filename)
-
xlim(from, to)
-
ylim(from, to)
-
title(name)
-
axis(axis)
-
xlabel(name)
-
ylabel(name)
*See how kwargs
are implemented in test.js
Output from test.js
.