Ausrichtung der ylabels in groupplot Umgebung

Tabellen und Grafiken erstellen und anordnen


Stas

Ausrichtung der ylabels in groupplot Umgebung

Beitrag von Stas »

Hallo,

Hätte jmd. eine Idee wie ich die ylabels der groupplots so ausrichten kann, dass diese untereinanderstehen. Ich habe es mit xschift versucht, jedoch habe ich einmal links und einmal rechts Labels.

Außerdem habe ich in meiner Arbeit viele dieser .txt Files, sodass ich log File Warnung bekomme bei TeXstudio. Gibt es irgnt elegantere Lösung für meine .tikz Datei, oder sollte ich mit \usetikzlibrary{external} und \tikzexternalize arbeiten? Meinung Bitte : )

Danke für eure Ansätze im Voraus
Liebe Grüße aus Berlin

\RequirePackage[l2tabu, orthodox]{nag}
\documentclass[12pt]{report}

\usepackage{pgfplots}
\usetikzlibrary{pgfplots.groupplots}
\usepackage{tikz}

\pgfplotsset{
	compat=newest,
	scale only axis, 
	width=0.7\textwidth,
	height=0.25\textwidth,
	major tick length = 0,
	minor tick length = 0,
	axis y line*=box,
	axis x line*=box,
	xmajorgrids=true, ymajorgrids=true,
	grid style={dotted},
	x tick label style={rotate=-30, anchor=north west},
	legend pos = south east,
	legend cell align=left,
	cycle list name	=mark list,
}

\begin{document}
	
	\begin{figure}[!htbp]
		\centering
		\noindent\input{umts1.tikz}
		\caption{test caption}
		
	\end{figure}
	
	
\end{document}
\begin{tikzpicture}[font=\small]
\begin{groupplot}[
		group style={
			group size=1 by 4,
			xlabels at=edge bottom,
			xticklabels at=edge bottom,
			vertical sep=5pt,
			},
		height=0.2\textwidth,
		axis y line*=left,
		axis x line*=bottom,
		xmin=0, xmax=15, xtick distance=1,
		x tick label style={rotate=30, anchor=north},
		xlabel={Zeit [s]},
			]
	\nextgroupplot[
			ymin=-125, ymax=-65, ytick distance=10,
			ylabel={RSRP [dBm]},
	]
	\addplot[color=green, mark=star, mark size = 1] table[x=x, y=m3rsrp,/pgf/number format/read comma as period] {umts1.txt};
	\label{gp:rsrp}
	
	\nextgroupplot[
			ymin=-16.5, ymax=-4.5, ytick distance=3,
			ylabel={RSRQ [dB]},
	]
	\addplot[color=green, mark=star, mark size = 1] table[x=x, y=m3rsrq,/pgf/number format/read comma as period] {umts1.txt};
		
	\nextgroupplot[
	ymin=-22.5, ymax=22.5, ytick distance=10,
	axis y line*=box,
	ylabel={SINR [dB]},
	]
	\addplot[color=green, mark=star, mark size = 1] table[x=x, y=m3sinr,/pgf/number format/read comma as period] {umts1.txt};
	
	\nextgroupplot[
	ymin=185, ymax=235, ytick distance=10,
	axis y line*=box,
	ylabel={$v_{Zug}$ [km/h]},
	]
	\addplot[color=black, mark=*, mark size = 1] table[x=x, y=speed,/pgf/number format/read comma as period] {umts1.txt};
	\label{gp:speed}
	
\end{groupplot}
\begin{groupplot}[
	group style={
		group size=1 by 4,
		xlabels at=edge bottom,
		xticklabels at=edge bottom,
		vertical sep=5pt},
	height=0.2\textwidth,
	axis y line*=right,
	axis x line=none,
	xmajorgrids=false, ymajorgrids=false,
	xmin=0, xmax=15, xtick distance=1,
	]
	\nextgroupplot[
		ymin=-115, ymax=-55, ytick distance=10,
		ylabel={RSCP [dBm]},
	]
	\addplot[color=red, mark=star, mark size = 1] table[x=x, y=m3rscp,/pgf/number format/read comma as period] {umts1.txt};
	\label{gp:rscp}
	\addplot[red, densely dashed, mark=*, mark size = 1] table[x=x, y=srscp,/pgf/number format/read comma as period] {umts1.txt};
	\label{gp:rscpS}
	
	\nextgroupplot[
	ymin=-24.5, ymax=3.5, ytick distance=7,
	ylabel={ECNO [dB]},
	]
	\addplot[color=red, mark=star, mark size = 1] table[x=x, y=m3ecno,/pgf/number format/read comma as period] {umts1.txt};
	\addplot[color=red, densely dashed, mark=*, mark size = 1] table[x=x, y=seclo,/pgf/number format/read comma as period] {umts1.txt};


	%\nextgroupplot[yticklabels={},]
	
	%\nextgroupplot[yticklabels={},]

\end{groupplot} 

\end{tikzpicture}
x	speed	m3rsrp	m3rsrq	m3sinr	m3rscp	m3ecno	srsrp	srsrq	ssinr	srscp	seclo
0	NaN	NaN	NaN	NaN	NaN	NaN	-97,34	-17,37	3,63	NaN	NaN
0,15	NaN	NaN	NaN	NaN	NaN	NaN	NaN	NaN	NaN	-91,9	-18,1
0,153	NaN	NaN	NaN	NaN	NaN	NaN	NaN	NaN	NaN	-91,9	-17,7
0,155	NaN	NaN	NaN	NaN	NaN	NaN	NaN	NaN	NaN	-91,9	-17,7
0,218	NaN	NaN	NaN	NaN	NaN	NaN	-97,34	-17,37	3,63	NaN	NaN
0,227	223,49	NaN	NaN	NaN	NaN	NaN	NaN	NaN	NaN	NaN	NaN
0,291	NaN	-97	-7	16	NaN	NaN	NaN	NaN	NaN	NaN	NaN
0,367	NaN	NaN	NaN	NaN	NaN	NaN	-99,44	-18,28	1,95	NaN	NaN
0,566	NaN	NaN	NaN	NaN	NaN	NaN	-99,44	-18,28	1,95	NaN	NaN
0,663	NaN	NaN	NaN	NaN	NaN	NaN	-99,44	-18,28	1,95	NaN	NaN