1,671 bytes added
, 12:20, 18 January 2009
< [[Modules]] | [[Graphics]] | [[Math]] >
[http://pgfplots.sourceforge.net/ Pgfplots] is a data plotting package based on [http://pgf.sourceforge.net PGF/TikZ].
It is now included as a (third party) [http://modules.contextgarden.net module]
for ConTeXt (with [http://modules.contextgarden.net/TikZ TikZ])
== Example ==
(Data on low-temperature thermal expansion coefficients downloaded from [http://cryogenics.nist.gov/]).
<context source="yes">
\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
</context>
{{todo|Download data files or locally processed result.}}
[[Category:Modules]]
[[Category:Graphics]]
[[Category:Math]]