von 100 » Do 22. Jul 2010, 14:44
Hallo,
ich erstelle gerade ein Diagramm mit tikzpicture, aber schaffe es einfach nicht die Achsengröße zu ändern.
So sieht der Quellcode aus:
\begin{tikzpicture}[scale=1]
\pgfplotsset{every axis legend/.append style={cells={anchor=west}, at={(0.98,0.98)}, anchor=north east}}
\pgfplotsset{every axis/.append style={line width=0.5pt}}
\pgfplotsset{every axis/.append style={mark options=solid, mark size=1.5pt}}
\begin{axis}[xlabel={Zeit [s]},ylabel={Dehnung [\%]}, grid=major, xmin=0, xmax=4e5,
xtick={0,1e5,2e5,3e5,4e5}, ymin=-0.2, ymax=0.4, ytick={-0.2,-0.1,0,0.1,0.2,0.3,0.4}]
\addplot[color=black] table[x=zeit,y=dehnung] {graphen/60.txt};
\addplot[color=red] table[x=zeit,y=dehnung] {graphen/80.txt};
\addplot[color=blue] table[x=zeit,y=dehnung] {graphen/100.txt};
\addplot[color=green] table[x=zeit,y=dehnung] {graphen/120.txt};
\addplot[color=orange] table[x=zeit,y=dehnung] {graphen/140.txt};
\addplot[color=purple] table[x=zeit,y=dehnung] {graphen/150.txt};
\legend{
{60°C}\\
{80°C}\\
{100°C}\\
{120°C}\\
{140°C}\\
{150°C}\\};
\end{axis}
\end{tikzpicture}
Er macht mir aber die x und die y-achse gleich lang. Ich hätte aber gerne, dass die x-achse doppelt so lang ist wie die y-Achse.
Kann mir da jemand weiterhelfen?
Gruß
Hallo,
ich erstelle gerade ein Diagramm mit tikzpicture, aber schaffe es einfach nicht die Achsengröße zu ändern.
So sieht der Quellcode aus:
[code]
\begin{tikzpicture}[scale=1]
\pgfplotsset{every axis legend/.append style={cells={anchor=west}, at={(0.98,0.98)}, anchor=north east}}
\pgfplotsset{every axis/.append style={line width=0.5pt}}
\pgfplotsset{every axis/.append style={mark options=solid, mark size=1.5pt}}
\begin{axis}[xlabel={Zeit [s]},ylabel={Dehnung [\%]}, grid=major, xmin=0, xmax=4e5,
xtick={0,1e5,2e5,3e5,4e5}, ymin=-0.2, ymax=0.4, ytick={-0.2,-0.1,0,0.1,0.2,0.3,0.4}]
\addplot[color=black] table[x=zeit,y=dehnung] {graphen/60.txt};
\addplot[color=red] table[x=zeit,y=dehnung] {graphen/80.txt};
\addplot[color=blue] table[x=zeit,y=dehnung] {graphen/100.txt};
\addplot[color=green] table[x=zeit,y=dehnung] {graphen/120.txt};
\addplot[color=orange] table[x=zeit,y=dehnung] {graphen/140.txt};
\addplot[color=purple] table[x=zeit,y=dehnung] {graphen/150.txt};
\legend{
{60°C}\\
{80°C}\\
{100°C}\\
{120°C}\\
{140°C}\\
{150°C}\\};
\end{axis}
\end{tikzpicture}
[/code]
Er macht mir aber die x und die y-achse gleich lang. Ich hätte aber gerne, dass die x-achse doppelt so lang ist wie die y-Achse.
Kann mir da jemand weiterhelfen?
Gruß