O'Reilly logo

gnuplot Cookbook by Lee Phillips

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making an interactive plot for the Web [new]

gnuplot's new canvas terminal allows us to include a graph in a web page with some interactive widgets:

Making an interactive plot for the Web [new]

Getting ready

As before, in order to see the results of this recipe, you will need a decently modern graphical web browser, in this case with JavaScript enabled (which it will most likely be by default, if you have not disabled it or installed a script-blocking extension). This recipe depends on gnuplot at least at version 4.4; the canvas terminal that we'll be using in this recipe is a new feature in gnuplot.

The HTML file created by the use of this recipe will refer to three JavaScript files and one ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required