ich versuche gerade einen surface plot mit pgfplots zu erstellen.
Das Plotten von Funktionen funktioniert sehr gut. Allerdings verzweifle ich gerade daran extern eingelesene Daten darzustellen. Das Datenfile hat 4 Spalten, von denen ich die erste, zweite und vierte benötige. Trotz 15400 Zeilen läuft TeX durch (das Datenfile bzw. dessen Aufbau sollte also keine Probleme machen). Allerdings stellt er mir alle Messpunkte (wie bei mark=*) dar, statt zwischen den Messwerten zu interpolieren.
\documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \usepackage{verbatim} \pgfplotsset{compat=1.3, axis line style={ultra thin}, tick style={ultra thin,black}, major tick length={0.06cm}, minor tick length={0.06cm}, xlabel near ticks, ylabel near ticks,y axis style/.style={ yticklabel style=#1, ylabel style=#1, y axis line style=#1, ytick style=#1}} \begin{document} \small \begin{tikzpicture} \begin{axis}[faceted color=none, height=10.5cm, width=6cm, view={0}{90}, xlabel={$b$ [S]},xlabel shift=0pt, ylabel={$l$ [S]},ylabel shift=-5pt, zlabel={$c_{\mathrm I}$ [k]}, colorbar sampled={surf}, colorbar style={ samples=40, tickwidth=0pt, faceted color=white, ylabel={$\sigma_{\mathrm I}$ [Pa]}, ylabel shift=-3pt, y axis line style={draw opacity=0}, colorbar sampled line=\marg{none}}, colorbar shift/.style={xshift=0.1cm}, colorbar/width=0.4cm, colormap={color}{color(0)=(blue);color(0.5)=(white); color(1)=(red)}] \addplot3 table[x index=0,y index=1, z index=3,header=false,surf,shader=interp]{versuch.txt}; \end{axis} \end{tikzpicture} \end{document}
Hat jemand einen Tip?
Viele Grüße
Dirk