/matplotnode

C++ bindings for Node.js exposing a subset of matplotlib's functionality through the CPython API.

Primary LanguageC++MIT LicenseMIT

matplotlib plotting for node.js

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.

Usage

$ npm install matplotnode
var plt = require('matplotnode');

You need to have Python 2.7 and matplotlib installed for the bindings to work.

Bindings

  • 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

Example

Output from test.js.

subplot example