matplotnode
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.
Requirements
- Python 2.7 (might work on Python 3, not tested yet)
- matplotlib
Usage
$ npm install matplotnode
const plt = ;
Bindings
-
plot([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)
-
clf()
-
cla()
-
close()
-
xkcd()
*See how kwargs
are implemented in test.js
Example
const plt = ;const x = 100; // xkcd-style plot :)plt; plt;plttitle'trig';plt;plt;plt; plt;plt;plt;plt; plt;
const plt = ;const x = 100; plt;plt;plt;