von JohannesX » Mi 6. Aug 2014, 08:15
Hallo liebe Latex Freunde,
ich versuche schon lange -vergeblich- die Spannungen (Z) einer Platte (mit den Koordinaten X,Y) als 2d-plot darzustellen. Das ist der akktuelle Stand (vielen Dank an Elke):
\documentclass[margin=5mm]{standalone}
\usepackage{pgfplots}
%\pgfplotsset{compat=1.10}
\usepgfplotslibrary{patchplots}
\usepackage{filecontents}
% Erstellen der Datei nodes.dat
\begin{filecontents}{nodes.dat}
X Y Z
-44.0651 2343.99 13.09826816
55.9848 2368.11 16.22988554
-75.7082 2102.19 8.33707669
88.9038 2102.33 9.954898355
-111.614 1626.88 2.156923009
119.607 1626.87 2.619794267
\end{filecontents}
\begin{document}
\begin{tikzpicture}
\begin{axis}[nodes near coords={(\coordindex)},title=Quadratic Triangle]
\addplot[patch,patch type=triangle quadr, shader=interp,point meta=explicit] table[x=X,y=Y,meta=Z]{nodes.dat};
\end{axis}
\end{tikzpicture}
\end{document}
Habt ihr eine Idee?...
Hallo liebe Latex Freunde,
ich versuche schon lange -vergeblich- die Spannungen (Z) einer Platte (mit den Koordinaten X,Y) als 2d-plot darzustellen. Das ist der akktuelle Stand (vielen Dank an Elke):
[code]
\documentclass[margin=5mm]{standalone}
\usepackage{pgfplots}
%\pgfplotsset{compat=1.10}
\usepgfplotslibrary{patchplots}
\usepackage{filecontents}
% Erstellen der Datei nodes.dat
\begin{filecontents}{nodes.dat}
X Y Z
-44.0651 2343.99 13.09826816
55.9848 2368.11 16.22988554
-75.7082 2102.19 8.33707669
88.9038 2102.33 9.954898355
-111.614 1626.88 2.156923009
119.607 1626.87 2.619794267
\end{filecontents}
\begin{document}
\begin{tikzpicture}
\begin{axis}[nodes near coords={(\coordindex)},title=Quadratic Triangle]
\addplot[patch,patch type=triangle quadr, shader=interp,point meta=explicit] table[x=X,y=Y,meta=Z]{nodes.dat};
\end{axis}
\end{tikzpicture}
\end{document}
[/code]
Habt ihr eine Idee?...