Gnuplot

From Wiki
Revision as of 18:47, 14 January 2006 by Hraban (talk | contribs) (Category:Math instead of Mathematics, todo tag, link)
Jump to navigation Jump to search

< Modules | Graphics | Math >

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 ...

Alternatives for Function Plotting in ConTeXt


TODO:
  • Fix OS-specifics to make the module work
  • Support multiple terminals
  • ... (See: To-Do List)