von LK » Mi 27. Feb 2013, 21:53
Hallo Leute ich kämpfe mal wieder mit einem pgfplot.
Ich habe folgendes Problem:
Ich ein paar Punkte, die ich in ein Koordinatensystem zeichne. Nun möchte ich das die Achsenwerte 3 oder 4 Nachkommastellen haben, aber irgendwie macht latex die anzahl der Nachkommastellen selber ich hab schon
y tick style ={precision=4}
probiert und ein paar abwandlungen davon, aber nicht sklappt wirklich...
weiß jemand von euch wie ich das machen kann?
Hier mein code:
\begin{figure}[!htp]
\centering
\begin{tikzpicture}
\begin{axis}[scale only axis, width=0.8\textwidth,height=0.2\textheight,
xtick={1,2,3,...,14}, %\empty,
% x tick label style={rotate=75},
% axis x line = bottom,
% axis y line =left,
ytick={0.350,0.400,0.450},
% xlabel = $RK-Parameteranzahl$,
xmax=15,
xmin=0,
ylabel= $x_{1_{min}}$,
ymax=0.45,
ymin=0.32,
]
\addplot [only marks, mark=*, color=black] table [x={Anzahl}, y={om1}]{Min_parameteranzahl.dat};
\addlegendentry{$\tilde{\x}_{12}^{*}$ = 0.4}
\end{axis}
\end{tikzpicture}
\end{figure}
ich möchte also, dass auf der y-achse nicht 0.4 sonder 0.400 steht.
Danke schon mal im vorraus!
Hallo Leute ich kämpfe mal wieder mit einem pgfplot.
Ich habe folgendes Problem:
Ich ein paar Punkte, die ich in ein Koordinatensystem zeichne. Nun möchte ich das die Achsenwerte 3 oder 4 Nachkommastellen haben, aber irgendwie macht latex die anzahl der Nachkommastellen selber ich hab schon
y tick style ={precision=4}
probiert und ein paar abwandlungen davon, aber nicht sklappt wirklich...
weiß jemand von euch wie ich das machen kann?
Hier mein code:
\begin{figure}[!htp]
\centering
\begin{tikzpicture}
\begin{axis}[scale only axis, width=0.8\textwidth,height=0.2\textheight,
xtick={1,2,3,...,14}, %\empty,
% x tick label style={rotate=75},
% axis x line = bottom,
% axis y line =left,
ytick={0.350,0.400,0.450},
% xlabel = $RK-Parameteranzahl$,
xmax=15,
xmin=0,
ylabel= $x_{1_{min}}$,
ymax=0.45,
ymin=0.32,
]
\addplot [only marks, mark=*, color=black] table [x={Anzahl}, y={om1}]{Min_parameteranzahl.dat};
\addlegendentry{$\tilde{\x}_{12}^{*}$ = 0.4}
\end{axis}
\end{tikzpicture}
\end{figure}
ich möchte also, dass auf der y-achse nicht 0.4 sonder 0.400 steht.
Danke schon mal im vorraus!