Gnuplot

From Wiki
Revision as of 16:45, 6 January 2006 by Mojca Miklavec (talk | contribs) (Metapost -> MetaPost)
Jump to navigation Jump to search

< Modules

http://www.gnuplot.info/

Gnuplot is a portable command-line driven utility for function plotting for many platforms.

Preliminary Modules

Some preliminary modules were contributed by Peter Münster [1] and Hans Hagen [2] [3] on the mailing list to enable inclusion of gnuplot graphs from ConTeXt. Follow the links mentioned above to see the details. General idea is to enable gnuplot graphics inclusion with simple commands such as:

% general settings for the whole document
\startGNUPLOTinclusions
set terminal postscript eps color
set title 'Trigonometry'
\stopGNUPLOTinclusions

% creating the graphics
\startGNUPLOTgraphics{sin}
plot sin(x)
\stopGNUPLOTgraphics

% including the graphics into the document
\useGNUPLOTgraphic[sin][width=5cm]

Note: Peter's module currently only works under Linux, Hans's module has problems with newlines. Hoping that that will be fixed ...

TODO

  • Fix OS-specifics to make the module work
  • Support multiple terminals
  • ...

Alternatives for Function Plotting in ConTeXt