von Kazter » Fr 26. Aug 2022, 08:56
Mit etwas basteln, habe ich jetzt folgendes gefunden:
x label style={yshift=-3.00ex,anchor=south}
im lokalen \pgfplotsset{...}, siehe MWE.
Bin aber auch gerne für Alternativen offen
\documentclass{article}
\usepackage{caption,subfig}
\usepackage{pgfplots}
\pgfplotsset{
compat=newest,
/pgf/number format/use comma,
}
\usepackage{siunitx}
\sisetup{
locale = DE,
group-minimum-digits=4,
per-mode=symbol-or-fraction,
}
\begin{document}
\begin{figure}[htbp]
\centering
\pgfplotsset{
width=0.45\textwidth, height=.25\textheight,
typeset ticklabels with strut,
x label style={yshift=-3.00ex,anchor=south}% <- \strut eingefügt
}
\subfloat[Caption 1 Caption 1 Caption 1 Caption 1 Caption 1]{%
\begin{tikzpicture}[baseline]
\begin{axis}[
xmin=0,
xmax=1.80,
ymin=0,
ymax=60000,
xlabel={label x \strut\si{\cubic\metre\per\hour}},% <- \strut eingefügt
ylabel={label y}
]
\addplot {x^3 + 3*x + 10000};
\addlegendentry{\(x^3 + 3x + 10000\)}
\end{axis}
\end{tikzpicture}
}%
\hfil
\subfloat[Caption 2 Caption 2 Caption 2 Caption 2 Caption 2]{%
\begin{tikzpicture}[baseline]
\begin{axis}[
xmin=-25,
xmax=25,
ymin=0,
ymax=100,
xlabel={label x \strut\si{\litre\per\hour}},% <- \strut eingefügt
ylabel={label y}
]
\addplot {x^3 + 3*x + 1};
\addlegendentry{\(x^3 + 3x + 1\)}
\end{axis}
\end{tikzpicture}
}%
\caption{Caption 3}
\end{figure}
\end{document}
Mit etwas basteln, habe ich jetzt folgendes gefunden:
x label style={yshift=-3.00ex,anchor=south}
im lokalen \pgfplotsset{...}, siehe MWE.
Bin aber auch gerne für Alternativen offen ;)
[code]
\documentclass{article}
\usepackage{caption,subfig}
\usepackage{pgfplots}
\pgfplotsset{
compat=newest,
/pgf/number format/use comma,
}
\usepackage{siunitx}
\sisetup{
locale = DE,
group-minimum-digits=4,
per-mode=symbol-or-fraction,
}
\begin{document}
\begin{figure}[htbp]
\centering
\pgfplotsset{
width=0.45\textwidth, height=.25\textheight,
typeset ticklabels with strut,
x label style={yshift=-3.00ex,anchor=south}% <- \strut eingefügt
}
\subfloat[Caption 1 Caption 1 Caption 1 Caption 1 Caption 1]{%
\begin{tikzpicture}[baseline]
\begin{axis}[
xmin=0,
xmax=1.80,
ymin=0,
ymax=60000,
xlabel={label x \strut\si{\cubic\metre\per\hour}},% <- \strut eingefügt
ylabel={label y}
]
\addplot {x^3 + 3*x + 10000};
\addlegendentry{\(x^3 + 3x + 10000\)}
\end{axis}
\end{tikzpicture}
}%
\hfil
\subfloat[Caption 2 Caption 2 Caption 2 Caption 2 Caption 2]{%
\begin{tikzpicture}[baseline]
\begin{axis}[
xmin=-25,
xmax=25,
ymin=0,
ymax=100,
xlabel={label x \strut\si{\litre\per\hour}},% <- \strut eingefügt
ylabel={label y}
]
\addplot {x^3 + 3*x + 1};
\addlegendentry{\(x^3 + 3x + 1\)}
\end{axis}
\end{tikzpicture}
}%
\caption{Caption 3}
\end{figure}
\end{document}
[/code]