Achsenbeschriftung mittig unter tick

Tabellen und Grafiken erstellen und anordnen


Vaschan
Forum-Fortgeschrittener
Forum-Fortgeschrittener
Beiträge: 68
Registriert: So 8. Mai 2016, 12:35

Achsenbeschriftung mittig unter tick

Beitrag von Vaschan »

Hallo zusammen,

ist es möglich die Achsenbeschriftung mittig unter den ticks anzuordnen, statt wie bisher rechts daneben?
\documentclass{scrbook}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} 
\usepackage[ngerman]{babel}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usetikzlibrary{matrix}

\begin{document}

\begin{figure}[htb]
	\centering
	\begin{tikzpicture}[farbe/.style={draw=#1,fill=#1}]
	\pgfplotsset{every axis legend/.append style={at={(0.5,1.03)},anchor=north}}
	\begin{axis}[ybar,
	enlarge y limits=auto,
	enlarge x limits=0.05,
	width=0.89\textwidth,
	height=0.37\textheight,
	ylabel={test},
	x tick label style={rotate=90,anchor=north east, text width=0.5cm, align=right},
	ymin=0, 
	ymax=1, 
	bar width=3mm, 
	ymajorgrids, 
	every node near coord/.append style={above,yshift=22pt,fill=white},
	symbolic x coords={
		A,
B,
C,
D,
E,
F,
G,
H,
I,
J,
K,
L,
M,
N,
O,
P,
Q},
	xtick=data
	]
	\addplot[color=black, fill=blue, fill opacity=1] plot[error bars/.cd, y dir=both,y explicit] coordinates {
		(A,	0.424866676	)	+-	(	0.01869379	,	0.01869379	)
(B,	0.96544267	)	+-	(	0.022	,	0.022	)
(C,	0.836314393	)	+-	(	0.01	,	0.01	)
(D,	0.722118582	)	+-	(	0.011	,	0.011	)
(E,	0.507149286	)	+-	(	0.011	,	0.011	)
(F,	0.937286055	)	+-	(	0.012	,	0.012	)
(G,	0.917906326	)	+-	(	0.004	,	0.004	)
(H,	0.15745432	)	+-	(	0.016	,	0.016	)
(I,	0.079378693	)	+-	(	0.047	,	0.047	)
(J,	0.463471207	)	+-	(	0.009	,	0.009	)
(K,	0.20568627	)	+-	(	0.063	,	0.063	)
(L,	0.329032066	)	+-	(	0.008	,	0.008	)
(M,	0.419689286	)	+-	(	0.018	,	0.018	)
(N,	0.837295557	)	+-	(	0.003	,	0.003	)
(O,	0.817743111	)	+-	(	0.085	,	0.085	)
(P,	0.864113782	)	+-	(	0.049	,	0.049	)
(Q,	0.671110648	)	+-	(	0.202	,	0.202	)};
	\end{axis}
	\end{tikzpicture}
	\caption{bla}
	\label{fig:bla}
\end{figure}
\end{document}

Ratgeber

Verankerung auf Voreinstellung setzen

Beitrag von Ratgeber »

Lass `anchor=north east` weg.

Antworten