pgfplot x-Achse Aufteilen
Verfasst: Mo 7. Nov 2016, 10:51
Hallo,
ich erstelle gerade Graphen mit pgfplot und brauche eine andere Aufteilung als die normale oder logarithmische. Die Zahlen sollen immer den gleichen Abstand auf der x-Achse haben. Also z.B. die 0.25 zur 1 den gleichen Abstand wie die 91 zur 180. Habt ihr da eine Idee?
Im folgenden mein momentaner Code:
Grüße, Annelise
ich erstelle gerade Graphen mit pgfplot und brauche eine andere Aufteilung als die normale oder logarithmische. Die Zahlen sollen immer den gleichen Abstand auf der x-Achse haben. Also z.B. die 0.25 zur 1 den gleichen Abstand wie die 91 zur 180. Habt ihr da eine Idee?
Im folgenden mein momentaner Code:
\begin{figure}[ht]
\begin{tikzpicture}
\centering
\begin{axis}[width=0.9\textwidth,height=0.4\textheight, legend pos=south east,
xlabel={Hydratationsdauer in Tagen$\sqrt{t}$},
ylabel={(Na$^2$ + K$^+$)$-$ Konzentration in mmol/l},
xmin=0, xmax=180,
ymin=13, ymax=13.9,
xtick={0.25,1,2,7,28,56,91,180},
x tick label style={/pgf/number format/1000 sep=},
y tick label style={/pgf/number format/1000 sep=},
ytick={{13.3},{13.6},{13.8},{13.9}},
%extra y ticks={15, 17},
%extra y tick labels={{15},{17}},
extra y tick style={grid=major,
tick label style={xshift=-1cm}},
grid=both]
\addplot [black,line width=1pt] table {Diagramme/schaeferph1.csv};
\addplot [dash pattern=on 4pt off 2pt on 2pt off 1pt,line width=1pt] table {Diagramme/schaeferph2.csv};
\addplot [dash pattern=on 2pt off 1pt on 2pt off 1pt,line width=1pt] table {Diagramme/schaeferph3.csv};
\addplot [dash pattern=on 5pt off 2pt,line width=1pt ] table {Diagramme/schaeferph4.csv};
\legend{%
Referenzmischung,
20 M.-\% SFA,
40 M.-\% SFA,
60 M.-\% SFA
}
\end{axis}
\end{tikzpicture}
\caption{Veränderung des Natrium- und Kaliumgehalts und des pH-Wertes \cite{Sch06}}
\label{SFApH}
\end{figure}