pgfplots Exponent an Achse

Tabellen und Grafiken erstellen und anordnen


dehein2
Forum-Newbie
Forum-Newbie
Beiträge: 8
Registriert: Do 18. Apr 2013, 11:52

pgfplots Exponent an Achse

Beitrag von dehein2 »

Hallo,
ich bin noch recht neu was pgfplots angeht und habe ein Problem mit der Achsenskalierung. Ich möchte, dass die x-Achse einen beriech von 0 - 0.14 darstellt und dabei eine teilung von 0.01 hat, aber ich habe da so ungünstige Exponenten und hätte es gerne einfach als 0, 0.01, 0.02 ... 0.13, 0.14 .

Bild
\begin{tikzpicture}
\begin{axis}[xmin=0, xmax=0.14, ymin=0, ymax=0.7, xlabel=$R_{Einlauf}/R_{Rotor}$,
ylabel=$T_{Duct}/T$, height=9cm, width=14cm]

\addplot table {GraphData/EinlaufWu.dat};
\addplot table {GraphData/EinlaufTungComp.dat};

\legend{600mm [Wu],125mm [Tung Comp]}
\end{axis}
\end{tikzpicture}
Ich habe es auch mal so probiert, allerdings ohne Erfolg:
scaled ticks=false,
xtick={0.01,0.02,...,0.14}]
Das kann man doch sicher irgendwie ändern ;)

Vielen Dank
Dennis

Epllus
Forum-Guru
Forum-Guru
Beiträge: 470
Registriert: So 23. Sep 2012, 17:31

Beitrag von Epllus »

Ich glaube da wäre ein Minimalbeispiel recht praktisch.

Grüße
Epllus

PS. Nur um sicher zu gehen: Dateien hochladen funktioniert nicht.

dehein2
Forum-Newbie
Forum-Newbie
Beiträge: 8
Registriert: Do 18. Apr 2013, 11:52

Beitrag von dehein2 »

ich denke das sollte es tun, oder?
\documentclass{scrreprt}
\usepackage{graphicx}
\usepackage{pgfplots}


\begin{document}
 
\begin{figure}[h]
\begin{tikzpicture}
\begin{axis}[
xmin=0, 
xmax=0.14, 
ymin=0, 
ymax=0.7, 
xlabel=$r_{Einlauf}/d_{Rotor}$,
ylabel=$T_{Duct}/T$, 
height=9cm, 
width=14cm,
legend pos=south east,
scaled ticks=false,
xtick={0.01,0.02,...,0.14}]

\addplot  coordinates
{
(0.0351184,	0.136609899)
(0.0578997,	0.274165217)
(0.070523,	0.30125)
};

\legend{600mm [Wu],125mm [Tung Comp], 125mm [Tung], 406mm [Taylor]}

\end{axis}
\end{tikzpicture}
\caption{Übersicht Einlaufradius}
\label{plot:einlaufradius}
\end{figure} 
\end{document}

Epllus
Forum-Guru
Forum-Guru
Beiträge: 470
Registriert: So 23. Sep 2012, 17:31

Beitrag von Epllus »

ich denke das sollte es tun, oder?
Perfekt.
Versuch hiermit:
\documentclass{scrreprt} 
\usepackage{graphicx} 
\usepackage{pgfplots} 


\begin{document} 
  
\begin{figure}[h] 
\begin{tikzpicture} 
\begin{axis}[ 
xmin=0, 
xmax=0.14, 
ymin=0, 
ymax=0.7, 
xlabel=$r_{Einlauf}/d_{Rotor}$, 
ylabel=$T_{Duct}/T$, 
height=9cm, 
width=14cm, 
legend pos=south east, 
 xticklabel style={/pgf/number format/.cd,fixed} 
] 

\addplot  coordinates 
{ 
(0.0351184,   0.136609899) 
(0.0578997,   0.274165217) 
(0.070523,   0.30125) 
}; 

\legend{600mm [Wu],125mm [Tung Comp], 125mm [Tung], 406mm [Taylor]} 

\end{axis} 
\end{tikzpicture} 
\caption{Übersicht Einlaufradius} 
\label{plot:einlaufradius} 
\end{figure} 
\end{document} 
Hoffe es hilft
Epllus

dehein2
Forum-Newbie
Forum-Newbie
Beiträge: 8
Registriert: Do 18. Apr 2013, 11:52

Beitrag von dehein2 »

traumhaft, vielen Dank ;)

dehein2
Forum-Newbie
Forum-Newbie
Beiträge: 8
Registriert: Do 18. Apr 2013, 11:52

Beitrag von dehein2 »

Hallo,
nun habe ich fast das gleiche, aber dort erhalte ich mit folgendem Beispiel fehlermeldung und es sieht auch nicht richtig aus:
\documentclass{scrreprt}
\usepackage{graphicx}
\usepackage{pgfplots}


\begin{document}
 
\begin{figure}[h]
\begin{tikzpicture}
\begin{axis}[
xmin=0, 
xmax=0.03, 
ymin=0, 
ymax=1, 
xlabel=$\delta_{tip} / d_{Rotor}$,
ylabel=$F_M$, 
height=9cm, 
width=14cm,
legend pos=south east,
 xticklabel style={/pgf/number format/.cd,fixed}]

\addplot table {data.dat};

\legend{406mm [Preston]}

\end{axis}
\end{tikzpicture}
\caption{Einfluss der Blade Tip Clearance nach Preston\cite{PrestonMartin2004}}
\label{plot:einlaufradius}
\end{figure}


\end{document}
data.dat:
0.005	0.688068
0.01	0.513395
0.015	0.489961
0.02	0.459722
Wieso klappt es in diesem Beispiel nicht?

Vielen Dank

Antworten