我想要对齐下图中看到的 pgfplots。
我已经尝试过\pgfplotsset{yticklabel style={text width=3em,align=right}}
,但正如您所见,图仍然没有对齐。
我使用的代码如下所示。我在此处上传了必要的文件https://drive.google.com/open?id=1mlyaVNN9au6o-B-z9bHRpirUSnu3cxsT,如果您想尝试一下。
有人能帮我解决这个问题吗?
谢谢!
\documentclass[12pt,a4paper]{scrartcl}
%%german umlauts and localization
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
%%figures etc.
\usepackage[pdftex]{graphicx}
\usepackage{subcaption}
\usepackage{float}
%%fonts:
%Times like
\usepackage{txfonts} %supplies virtual text roman fonts using Adobe Times % needs to be loaded AFTER amsmath (because otherwise \iint is defined twice)
\usepackage{siunitx}
%%tikz
\usepackage{tikz}
\usepackage{tikzscale} %augments the \includegraphics command to accept tikzimages and scale them
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\pgfplotsset{plot coordinates/math parser=false}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{shapes.symbols,shadows}
\pgfplotsset{yticklabel style={text width=3em,align=right}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{figure}[H]
\centering
\begin{subfigure}[t]{0.49\textwidth}
\centering
\includegraphics[width = 1\textwidth]{a18_0.tikz}
\caption{Geschätzter Weg für $\sigma_{\Delta v_{BE}}^{2} >> \sigma_{\Delta v_{IG}}^{2}$}
\label{fig:a618_1}
\end{subfigure}
\hfill
\begin{subfigure}[t]{0.49\textwidth}
\centering
\includegraphics[width = 1\textwidth]{a18_3.tikz}
\caption{Geschätzter Weg für $\sigma_{\Delta v_{BE}}^{2} << \sigma_{\Delta v_{IG}}^{2}$}
\label{fig:a618_2}
\end{subfigure}
\caption{Geschätzter Weg}
\label{fig:a618_Weg}
\end{figure}
\begin{figure}[H]
\centering
\begin{subfigure}[t]{0.49\textwidth}
\centering
\includegraphics[width = 1\textwidth]{a18_1.tikz}
\caption{Geschätzte Geschwindigkeit für $\sigma_{\Delta v_{BE}}^{2} >> \sigma_{\Delta v_{IG}}^{2}$}
\label{fig:a618_3}
\end{subfigure}
\hfill
\begin{subfigure}[t]{0.49\textwidth}
\centering
\includegraphics[width = 1\textwidth]{a18_4.tikz}
\caption{Geschätzte Geschwindigkeit für $\sigma_{\Delta v_{BE}}^{2} << \sigma_{\Delta v_{IG}}^{2}$}
\label{fig:a618_4}
\end{subfigure}
\caption{Geschwindigkeitsverläufe}
\label{fig:a618_v}
\end{figure}
\end{document}