
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
matplotnode
Advanced tools
C++ bindings for Node.js exposing a subset of matplotlib's functionality through the CPython API.
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
const plt = require('matplotnode');
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()
*See how kwargs
are implemented in test.js
const plt = require('matplotlib');
const x = new Array(100).fill(0).map((x, i) => i / Math.PI);
plt.subplot('211');
plt.plot(x, x.map(Math.sin), 'color=r', 'label=sin(x)');
plt.plot(x, x.map(Math.cos), 'color=g', 'label=cos(x)');
plt.legend();
plt.subplot('212');
plt.plot(x, x.map(Math.tan), 'color=b', 'label=tan(x)', 'marker=o', 'linestyle=None');
plt.legend();
plt.grid(true);
plt.ylim(-5, 5);
plt.save('./examples/subplot.png');
const plt = require('matplotlib');
const x = new Array(100).fill(0).map((x, i) => i / Math.PI);
plt.plot(x, x.map(Math.sin));
plt.grid(true);
plt.show();
FAQs
C++ bindings for Node.js exposing a subset of matplotlib's functionality through the CPython API.
The npm package matplotnode receives a total of 46 weekly downloads. As such, matplotnode popularity was classified as not popular.
We found that matplotnode demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.