Difference between revisions of "Gnuplot"
Jump to navigation
Jump to search
(preliminary page about Gnuplot support) |
m (Metapost -> MetaPost) |
||
Line 7: | Line 7: | ||
== Preliminary Modules == | == Preliminary Modules == | ||
− | Some preliminary modules were contributed by Peter Münster [http://article.gmane.org/gmane.comp.tex.context/24884] and Hans Hagen [http://article.gmane.org/gmane.comp.tex.context/24935] 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: | + | Some preliminary modules were contributed by Peter Münster [http://article.gmane.org/gmane.comp.tex.context/24884] and Hans Hagen [http://article.gmane.org/gmane.comp.tex.context/24935] [http://article.gmane.org/gmane.comp.tex.context/24965] 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: |
<texcode> | <texcode> | ||
Line 35: | Line 35: | ||
== Alternatives for Function Plotting in ConTeXt == | == Alternatives for Function Plotting in ConTeXt == | ||
− | * in [[ | + | * in [[MetaPost]] |
** [[source:m-graph.tex|m-graph]] Module (see [http://cm.bell-labs.com/who/hobby/cstr_164.pdf Drawing Graphs with MetaPost] by John D. Hobby) | ** [[source:m-graph.tex|m-graph]] Module (see [http://cm.bell-labs.com/who/hobby/cstr_164.pdf Drawing Graphs with MetaPost] by John D. Hobby) | ||
** link to functions that Hans wrote in MetaFun | ** link to functions that Hans wrote in MetaFun |
Revision as of 16:45, 6 January 2006
< Modules
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
- in MetaPost
- m-graph Module (see Drawing Graphs with MetaPost by John D. Hobby)
- link to functions that Hans wrote in MetaFun