PGF darstellung funktioniert nicht
Verfasst: So 5. Jun 2016, 20:03
Hallo liebe Forumsmitglieder
Ich bitte noch mals um eure Hilfe.
Ich habe eine PGFplots darstellung erstellt leider funktioniert sie micht so richtig.
DAher könnte mir jemand sagen wo ich da fehler gemacht habe, ich habe den Graphen nur in der Achsen aufteilung und in der daten datei angepasst aber leider ist der Wurm drin.
Ich danke euch für eure Hilfe
Ich gebe noch ein Bild Mit dabei wie es in etwa aussehen soll.
Nur das die Achsen nicht unbedingt Log teilung brauchen glaube ich

Ich bitte noch mals um eure Hilfe.
Ich habe eine PGFplots darstellung erstellt leider funktioniert sie micht so richtig.
DAher könnte mir jemand sagen wo ich da fehler gemacht habe, ich habe den Graphen nur in der Achsen aufteilung und in der daten datei angepasst aber leider ist der Wurm drin.
\begin{filecontents*}{DSF.dat} 0.00 0 0.05 10 0.24 15 0.24 20 0.39 25 0.40 50 0.79 75 0.80 100 0.89 125 0.99 150 1.01 175 1.03 200 0.98 175 0.96 150 0.65 125 0.63 100 1.22 125 1.23 150 1.90 175 2.00 300 \end{filecontents*} \documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{pgfplots} \pgfplotsset{compat=1.13} \usepackage{tikz} %Zur darstellung von Graphen und anderen darstellungen \usetikzlibrary{positioning} \usetikzlibrary{matrix} \usetikzlibrary{decorations.pathreplacing} \begin{document} \begin{figure} \begin{tikzpicture}%[decoration=brase] \begin{axis}[ width=14cm, height=10cm, scale only axis, xtick={0,25,...,325}, xmin=0, xmax=325, xlabel={Normalspannung $\sigma$ in [$\frac{kN}{m^2}$]}, ytick={0,...,2.0} ymin=0, ymax=2.5, ylabel={Scherspannung $\tau$ $\frac{kN}{m^2}$}, axis x line*=bottom, %top, axis y line*=left, grid=major, every axis plot/.append style={ line width=1.5pt, mark size=2pt, mark=ball,forget plot, visualization depends on={x \as \myvalue}, }, point meta=y, nodes near coords={ \ifdim \myvalue pt=125pt \pgfmathprintnumber{\pgfplotspointmeta}\fi \ifdim \myvalue pt=250pt \pgfmathprintnumber{\pgfplotspointmeta}\fi \ifdim \myvalue pt=325pt \pgfmathprintnumber{\pgfplotspointmeta}\fi % \ifdim \myvalue pt=0pt \pgfmathprintnumber{\pgfplotspointmeta}\fi }, nodes near coords style={text=black} ] \addplot [red] table[restrict expr to domain={\thisrowno{0}}{0:1.03}] {DSF.dat}; \addplot [green] table[restrict expr to domain={\thisrowno{0}}{0.98:0.63}] {DSF.dat}; \addplot [blue] table[restrict expr to domain={\thisrowno{0}}{1.22:2.0}] {DSF.dat}; % \addplot [black] table[restrict expr to domain={\thisrowno{0}}{0:375}] {NS2.dat}; % \addplot [orange] table[restrict expr to domain={\thisrowno{0}}{0:375}] {datenNS.dat}; %\draw[decorate, yshift=-4ex] (0,2) -- node[below=0.4ex] {Text unterhalb} (0,0); \end{axis} % \draw[decorate, yshift=0ex] (0,1.65) -- node[blue,anchor=base west, xshift=2ex] {Scheinbare Koh\"asion 33,53 $\frac{kN}{m^2}$} (0,0);% Geschweifte Klammer mit schrift recht \end{tikzpicture} \caption{Normal-Scherspannungs - Diagramm} \label{Normalspannung} \end{figure} \end{document}
Ich gebe noch ein Bild Mit dabei wie es in etwa aussehen soll.
Nur das die Achsen nicht unbedingt Log teilung brauchen glaube ich