Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

plot in node.js

I would like to build a server using node.js which is able to plot graphs.

I could not find useful information so far on how to hook Matplotlib/ Pylab into node.

Maybe GNUPlot can be hooked up? I personally prefer Matplotlib but GNUPlot would be fine, too. In my experience the tools I mentioned outperform tools like flot or TheJit for huge data loads.

Any suggestions on creating fast plots from within node.js will be appreciated.

like image 507
moin moin Avatar asked Dec 05 '25 00:12

moin moin


1 Answers

Either use child processes and execute external programs, watch for theit termination and take the output. Or have a look at the node-canvas lib if you want to do it by yourself.

like image 166
b_erb Avatar answered Dec 06 '25 15:12

b_erb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!