Skip to content

RoyTinker/eumeryx-gnuplot-wasm

 
 

Repository files navigation

gnuplot-wasm

This is Gnuplot compiled to WebAssembly using Emscripten and supports SVG terminals only.

See demo.

How to use

<script src="https://cdn.jsdelivr.net/gh/Eumeryx/gnuplot-wasm/gnuplot.js"></script>
<script>
  createGnuplot()
    .then((gnuplot) => {
      try {
        gnuplot('plot x**2;', {x: 600, y: 480})
      } catch (err) {
        console.error(err)
      }
    })
    .catch((err) => console.error(err));
</script>

Or see demo.

How to build

You need Emscripten SDK.

./build.sh install #install to `./dist` dir.

About

Gnuplot compiled to WebAssembly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 51.2%
  • JavaScript 34.9%
  • HTML 13.9%