Difference between revisions of "Pgfplot"
Jump to navigation
Jump to search
(Created page - to be enriched...) |
|||
Line 4: | Line 4: | ||
It is now included as a (third party) [http://modules.contextgarden.net module] | It is now included as a (third party) [http://modules.contextgarden.net module] | ||
for ConTeXt (with [http://modules.contextgarden.net/TikZ TikZ]) | for ConTeXt (with [http://modules.contextgarden.net/TikZ TikZ]) | ||
+ | |||
+ | An alternative package is [[MPgraph]] using [[MetaPost]]. | ||
== Example == | == Example == |
Revision as of 21:53, 19 January 2009
Pgfplots is a data plotting package based on PGF/TikZ. It is now included as a (third party) module for ConTeXt (with TikZ)
An alternative package is MPgraph using MetaPost.
Example
(Data on low-temperature thermal expansion coefficients downloaded from [1]).
\setupcolors[state=start] \usemodule[tikz] \usemodule[pgfplots] \starttikzpicture \startaxis[ xmin=0,xmax=300, title=http://cryogenics.nist.gov/, xlabel=$T$ (K), ylabel=$(L-L_{293})/L_{293}$, legend style={at={(0.95,0.05)},anchor=south east}, width=16cm ] \addplot[mark=none,color=red] plot file {sapphire.dat}; \addlegendentry{sapphire} \addplot[mark=none,color=green] plot file {Be.dat}; \addlegendentry{Be} \addplot[mark=none,color=blue] plot file {BeCu.dat}; \addlegendentry{BeCu} \addplot[mark=none,color=cyan] plot file {SS304.dat}; \addlegendentry{SS304} \addplot[mark=none,color=magenta] plot file {Al6061-T6.dat}; \addlegendentry{Al6061-T6} \addplot[mark=none,color=orange] plot file {nylon.dat}; \addlegendentry{nylon} \stopaxis \stoptikzpicture
internal error: convert failed
TODO: Download data files or locally processed result. (See: To-Do List) |