The new Mathematica 9 is out! I would love to know how to make similar plots to the one's advertized, particularly the following:
and
Here is a simple plot to get started.
%& -shell-escape
\documentclass{article}
\usepackage{tikz}
\begin{filecontents}{data.dat}
3.045784 3.415896
3.405784 4.025693
3.785784 4.522530
4.125784 5.538449
4.485784 6.704992
4.805784 6.978939
5.145784 7.113496
5.425784 8.916397
6.065784 9.487712
6.365784 10.876397
6.685784 10.693497
7.025784 11.364131
7.345784 11.442530
7.665784 12.582530
8.005784 13.125693
8.225784 13.738450
8.585784 14.247891
8.865784 14.982530
\end{filecontents}
\begin{document}
\pagestyle{empty}
\begin{tikzpicture}[x=1cm,y=0.4cm]
\def\xmin{3}
\def\xmax{9.2}
\def\ymin{2}
\def\ymax{15.5}
% grid
\draw[style=help lines, ystep=2, xstep=1] (\xmin,\ymin) grid
(\xmax,\ymax);
% axes
\draw[->] (\xmin,\ymin) -- (\xmax,\ymin) node[right] {$x$};
\draw[->] (\xmin,\ymin) -- (\xmin,\ymax) node[above] {$y$};
% xticks and yticks
\foreach \x in {3,4,...,9}
\node at (\x, \ymin) [below] {\x};
\foreach \y in {2,4,...,14}
\node at (\xmin,\y) [left] {\y};
% plot the data from the file data.dat
% smooth the curve and mark the data point with a dot
\draw[color=blue] plot[smooth,mark=*,mark size=1pt] file {data.dat}
node [right] {data};
\end{tikzpicture}
\end{document}
pgfplots
I was looking for the start of the axis environment :)