Stuff I've added to gnuplot and other work in progress

This web page has samples of recent features that are in the development version of gnuplot, and a few that aren't yet even in the development version because they are still being worked on. Here are some instructions on how to download and patch source from the CVS tree

Complete set of demos drawn to the HTML 5 canvas (mouseable!)

HTML 5 canvas demo set Mar 2011

Documentation

This copy of the manual was generated from the cvs version as of 25 Nov 2010.
Unlike previous versions, it contains figures.
gnuplot.pdf
LaTeX tutorial
tutorial.dvi tutorial.pdf
Embedding gnuplot output in a MSWord document
Word is highly biased against correct import of non-Microsoft file formats, including PostScript. If you need to embed a high quality gnuplot plot in a Word document, I suggest you try the EMF driver. Here is a sample Word document with embedded plots.

Work in progress

Hyperlinks automatically embedded in SVG output
Demo output from gnuplot's svg driver after modification to bracket each plot ('curve', or in this case 'histogram category') in a separate element in the xlink name space:
  <a xlink:title="Some identifier">
  ... plot elements ...
  </a>
Note how the cursor changes to indicate the link attached to each plot element, and to the corresponding sample in the key box. The exact behavior depends on your browser. Firefox also show a pop-up tooltips box.

This is
patchset #2172587 on SourceForge.

The same hyperlink demo output as a pdf file
I used gnuplot's epslatex terminal, which creates two files hyper.tex and hyper-inc.eps. I then edited the *.tex file to include the line
 \usepackage[pdftex,baseurl=http://foo]{hyperref}
And created the final
pdf file with embedded hyperlinks by typing
    convert hyper-inc.eps hyper-inc.pdf
    pdflatex hyper

Some lesser-known features in Gnuplot

Alignment of 2D and 3D plot boundaries


The "set [lrtb]margin at screen XX" command allows lining up multiplot components so that their edges match up exactly

Use of 3D impulses to display heat maps


This technique works well when you have individual values for many x/y data points rather than a smooth surface.

Clusters of Stacked Histograms


Plot generated by the following input script and data file.

Extra information associated with each point in a data file

Here is a neat plot that uses the "with labels" style to place city names at their geographic coordinates, with the population indicated by font size.
Click for full-size image


Ethan A Merritt
30 March 2011