von MenschMax » Mi 9. Nov 2016, 12:18
Hallo,
ich habe zwei Fragen:
a) Wie kann ich bei tikzpicture die Achsen so einstellen, dass nicht dran steht: 0,2 * 10^4 sondern eher dann 2000
Habe gefunden:
\tikzset{every x tick label/.append style={/pgf/number format/.cd,
fixed,
fixed zerofill,
precision=2}}
Läuft aber leider nicht :-/
b) Ich erstelle über
\addplot table[x=Iterationen, y=Outlet_Fond_FeRi,mark=none] {Test.txt};
ein Diagramm. Das klappt ganz gut. Die Option "mark" habe ich ausgeschalten da bei der Vielzahl von Daten sonst alles dick und fett markiert wird. Wie kann ich denn lediglich 4 bis 5 marks einbauen? mit der Option mark repeat also:
\addplot table[x=Iterationen, y=Outlet_Fond_FeRi,mark repeat=1000] {Test.txt};
will es nicht so recht funktionieren?
\documentclass[a4paper,12pt,twoside]{report}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{pgfplots, pgfplotstable}
\pgfplotsset{compat=1.10}
\usepackage{tikz}
\usepackage{csvsimple}
\usepackage{float}
\begin{document}
\begin{figure}[H]
\begin{center}
\begin{tikzpicture}
\begin{axis}[
legend style={at={(0.70,0.45)},xshift=0.2cm,anchor=north west,nodes=right} ,
legend entries ={Hallo},
width=\linewidth, % Scale the plot to \linewidth
height=10cm,
grid=major,
grid style={dashed,gray!30},
xlabel=Anzahl Iterationen,
ylabel=Temperatur in K,
xmin=0, xmax=19996,
ymin=270, ymax=340,
x tick label style={rotate=45,anchor=east},
xtick={2000,4000,6000,8000,10000,12000,14000,16000,18000,20000},
]
\addplot table[x=Iterationen, y=Outlet_Fond_FeRi,mark=none] {Test.txt};
\end{axis}
\end{tikzpicture}
\end{center}
\end{figure}
\end{document}
Besten Dank für Hinweise liebes Forum
Hallo,
ich habe zwei Fragen:
a) Wie kann ich bei tikzpicture die Achsen so einstellen, dass nicht dran steht: 0,2 * 10^4 sondern eher dann 2000
Habe gefunden:
[code]
\tikzset{every x tick label/.append style={/pgf/number format/.cd,
fixed,
fixed zerofill,
precision=2}}
[/code]
Läuft aber leider nicht :-/
b) Ich erstelle über
[code]\addplot table[x=Iterationen, y=Outlet_Fond_FeRi,mark=none] {Test.txt};[/code]
ein Diagramm. Das klappt ganz gut. Die Option "mark" habe ich ausgeschalten da bei der Vielzahl von Daten sonst alles dick und fett markiert wird. Wie kann ich denn lediglich 4 bis 5 marks einbauen? mit der Option mark repeat also:
[code]\addplot table[x=Iterationen, y=Outlet_Fond_FeRi,mark repeat=1000] {Test.txt};[/code]
will es nicht so recht funktionieren?
[code]\documentclass[a4paper,12pt,twoside]{report}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{pgfplots, pgfplotstable}
\pgfplotsset{compat=1.10}
\usepackage{tikz}
\usepackage{csvsimple}
\usepackage{float}
\begin{document}
\begin{figure}[H]
\begin{center}
\begin{tikzpicture}
\begin{axis}[
legend style={at={(0.70,0.45)},xshift=0.2cm,anchor=north west,nodes=right} ,
legend entries ={Hallo},
width=\linewidth, % Scale the plot to \linewidth
height=10cm,
grid=major,
grid style={dashed,gray!30},
xlabel=Anzahl Iterationen,
ylabel=Temperatur in K,
xmin=0, xmax=19996,
ymin=270, ymax=340,
x tick label style={rotate=45,anchor=east},
xtick={2000,4000,6000,8000,10000,12000,14000,16000,18000,20000},
]
\addplot table[x=Iterationen, y=Outlet_Fond_FeRi,mark=none] {Test.txt};
\end{axis}
\end{tikzpicture}
\end{center}
\end{figure}
\end{document}[/code]
Besten Dank für Hinweise liebes Forum