2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00

Make y-axis tick labels fixed precision of 2

This commit is contained in:
Martin Thoma 2016-05-28 07:56:37 +02:00
parent 67206f6a2f
commit 23207e7040
2 changed files with 10 additions and 6 deletions

View file

@ -7,17 +7,20 @@
\begin{document}
\begin{tikzpicture}
\begin{axis}[
legend pos=north west,
legend pos=north west,
axis x line=middle,
axis y line=middle,
y tick label style={/pgf/number format/fixed,
/pgf/number format/fixed zerofill,
/pgf/number format/precision=1},
grid = major,
width=16cm,
height=8cm,
grid style={dashed, gray!30},
xmin=-8, % start the diagram at this x-coordinate
xmax= 8, % end the diagram at this x-coordinate
xmax= 8, % end the diagram at this x-coordinate
ymin= 0, % start the diagram at this y-coordinate
ymax= 1, % end the diagram at this y-coordinate
ymax= 1, % end the diagram at this y-coordinate
%axis background/.style={fill=white},
xlabel=$t$,
ylabel=sig$(t)$,