von Christian123 » Fr 14. Jun 2013, 21:34
Hallo zusammen,
ich möchte die Achsenunterteilung bei einem tikz-Diagramm ändern. Es sollten nur ganzzahlige Werte in der X-Achse stehen. Wie bekomme ich das hin?
Unten steht mein Entwurf.
Grüße, Christian
\begin{tikzpicture}
\begin{axis}[%
width=4.52083333333333in,
height=3.565625in,
scale only axis,
xmin=0,
xmax=6,
xlabel={$\text{Vielfache der Grundfrequenz }\omega$},
ymin=0,
ymax=5,
ylabel={Amplitude},
axis x line*=bottom,
axis y line*=left
]
\addplot [
color=black,
line width=1.5pt,
mark size=4.0pt,
only marks,
mark=x,
mark options={solid},
forget plot
]
table[row sep=crcr]{
0 0\\
1 4\\
2 0\\
3 3\\
4 2\\
5 0\\
};
\end{axis}
\end{tikzpicture}%
Hallo zusammen,
ich möchte die Achsenunterteilung bei einem tikz-Diagramm ändern. Es sollten nur ganzzahlige Werte in der X-Achse stehen. Wie bekomme ich das hin?
Unten steht mein Entwurf.
Grüße, Christian
[code]
\begin{tikzpicture}
\begin{axis}[%
width=4.52083333333333in,
height=3.565625in,
scale only axis,
xmin=0,
xmax=6,
xlabel={$\text{Vielfache der Grundfrequenz }\omega$},
ymin=0,
ymax=5,
ylabel={Amplitude},
axis x line*=bottom,
axis y line*=left
]
\addplot [
color=black,
line width=1.5pt,
mark size=4.0pt,
only marks,
mark=x,
mark options={solid},
forget plot
]
table[row sep=crcr]{
0 0\\
1 4\\
2 0\\
3 3\\
4 2\\
5 0\\
};
\end{axis}
\end{tikzpicture}%
[/code]