alexis-gruet-deel / matplotnode

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:C++ 92.0%Language:JavaScript 6.5%Language:Python 1.6%