how can I prevent, that the values on my axis were rounded on two digits after point? I need three digits after the point.
Code: Select all
\begin{tikzpicture}
\begin{axis}[
legend pos=outer north east,
grid=major,
xlabel=$t\;in\;ms$,
ytick={-0.625,-0.5,-0.375,-0.25,-0.125,0,0.125,0.25,0.375,0.5,0.625},
ylabel=$U\;in\;Volt$, xmin=0,
]
\addplot[smooth,color=blue,mark=none] coordinates {
(0,-0.5)
(3,-0.5)
};
\addplot[smooth,color=blue,mark=none] coordinates {
(0,-0.375)
(3,-0.375)
};
\addplot[smooth,color=blue,mark=none,fill opacity=.2] coordinates {
(0,-0.25)
(3,-0.25)
};
\addplot[smooth,color=blue,mark=none,fill opacity=.2] coordinates {
(0,-0.125)
(3,-0.125)
};
\addplot[smooth,color=blue,mark=none,fill opacity=.2] coordinates {
(0,0)
(3,0)
};
\addplot[smooth,color=blue,mark=none,fill opacity=.2] coordinates {
(0,0.125)
(3,0.125)
};
\addplot[smooth,color=blue,mark=none,fill opacity=.2] coordinates {
(0,0.25)
(3,0.25)
};
\addplot[smooth,color=blue,mark=none,fill opacity=.2] coordinates {
(0,0.375)
(3,0.375)
};
\addplot[smooth,color=blue,mark=none,fill opacity=.2] coordinates {
(0,0.5)
(3,0.5)
};
\addplot[smooth,color=red,mark=x] coordinates {
(0,0)
};
\addplot[smooth,color=red,mark=x] coordinates {
(0.2,0)
(0.2,0.4)
};
\addplot[smooth,color=red,mark=x] coordinates {
(0.4,0)
(0.4,0.458)
};
\addplot[smooth,color=red,mark=x] coordinates {
(0.6,0)
(0.6,-0.08)
};
\addplot[smooth,color=red,mark=x] coordinates {
(0.8,0)
(0.8,-0.447)
};
\addplot[smooth,color=red,mark=x] coordinates {
(1,0)
(1,0)
};
\addplot[smooth,color=red,mark=x] coordinates {
(1.2,0)
(1.2,0.4)
};
\addplot[smooth,color=red,mark=x] coordinates {
(1.4,0)
(1.4,0.33)
};
\addplot[smooth,color=red,mark=x] coordinates {
(1.6,0)
(1.6,0)
};
\addplot[smooth,color=red,mark=x] coordinates {
(1.8,0)
(1.8,-0.325)
};
\addplot[smooth,color=red,mark=x] coordinates {
(2,0)
(2,-0)
};
\addplot[smooth,color=red,mark=x] coordinates {
(2.2,0)
(2.2,0.435)
};
\addplot[smooth,color=red,mark=x] coordinates {
(2.4,0)
(2.4,0.335)
};
\addplot[smooth,color=red,mark=x] coordinates {
(2.6,0)
(2.6,-0.1)
};
\addplot[smooth,color=red,mark=x] coordinates {
(2.8,0)
(2.8,-0.48)
};
\addplot[smooth,color=red,mark=x] coordinates {
(3,0)
(3,0)
};
\legend{$f[t]$};
\end{axis}
\end{tikzpicture}
greetz andre