将两个 tikzpictures 并排放置的问题

Problem with putting two tikzpictures next to each other

我无法将两个 tikzpictures 并排放置。

我也试过使用小页,但还是不行。

\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[left = 23mm, bottom = 24mm, top = 24mm, right = 29mm]{geometry}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{circuitikz}
\usetikzlibrary{arrows,shapes,positioning}
\usepackage{subfig}
\begin{figure}[h]
    
        \centering
    
        \begin{subfloat}[lfig1] {

        \centering

            \begin{tikzpicture}
            
                    \draw[thin, ->] (1.2,0) -- (1.2,5.4) node[below left]{$\phi_2(t)$};
                    \draw[thin, ->] (0,1.2) -- (5.4,1.2) node[below left]{$\phi_1(t)$};
                    \draw[very thick, blue, ->] (1.2,1.2) -- (1.2,4.15) node[black][midway, right=1mm]{$s_2$};
                    \draw[very thick,red,->] (1.2,1.2) -- (4.15,1.2) node[black][midway, above=1mm]{$s_1$};
                    \draw[thin, dashed] (1.2,4.2) -- (4.2,1.2) node[midway, above right]{$\sqrt{2E_b}$};
            
            \end{tikzpicture}
            
        }
            
        \end{subfloat}
        
        \hspace{10pt}       
        
        \begin{subfloat}[lfig2] {

        \centering
        
            \begin{tikzpicture}
            
                \draw[thin, ->] (0,1.2) -- (8.4,1.2) node[below left]{$\phi_1(t)$};
                \draw[thin, ->] (4.2,0) -- (4.2,3.4) node[below left]{$\phi_2(t)$};
                \draw[thick, blue, ->] (4.2,1.2) -- (1.25,1.2) node[midway, above=1mm]{$s_2$};
                \draw[thick, red, ->] (4.2,1.2) -- (7.15,1.2) node[midway, above=1mm]{$s_1$};
            
            \end{tikzpicture}
        
        }       
        
        \end{subfloat}
        
        \caption{captionfig1}
        \label{Slika:fig1}
    
    \end{figure}

因此,我需要将这两个图放在同一个 'row' 中。我试过使用具有不同大小的 \linewidth 的小页,但这让我无处可去。

我需要这样显示:https://prnt.sc/CM8kFW-DvRQZ

latex 中的空行表示段落的结尾。如果您不想换行,请不要通过添加所有这些空行来结束当前段落。

\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[left = 23mm, bottom = 24mm, top = 24mm, right = 29mm]{geometry}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{circuitikz}
\usetikzlibrary{arrows,shapes,positioning}
\usepackage{subfig}


\begin{document}

\begin{figure}[h]
\centering
\begin{subfloat}[lfig1] {
\centering
    \begin{tikzpicture}
   
            \draw[thin, ->] (1.2,0) -- (1.2,5.4) node[below left]{$\phi_2(t)$};
            \draw[thin, ->] (0,1.2) -- (5.4,1.2) node[below left]{$\phi_1(t)$};
            \draw[very thick, blue, ->] (1.2,1.2) -- (1.2,4.15) node[black][midway, right=1mm]{$s_2$};
            \draw[very thick,red,->] (1.2,1.2) -- (4.15,1.2) node[black][midway, above=1mm]{$s_1$};
            \draw[thin, dashed] (1.2,4.2) -- (4.2,1.2) node[midway, above right]{$\sqrt{2E_b}$};
    
    \end{tikzpicture}
}
\end{subfloat}
\hspace{10pt}       
\begin{subfloat}[lfig2] {
\centering
    \begin{tikzpicture}
    
        \draw[thin, ->] (0,1.2) -- (8.4,1.2) node[below left]{$\phi_1(t)$};
        \draw[thin, ->] (4.2,0) -- (4.2,3.4) node[below left]{$\phi_2(t)$};
        \draw[thick, blue, ->] (4.2,1.2) -- (1.25,1.2) node[midway, above=1mm]{$s_2$};
        \draw[thick, red, ->] (4.2,1.2) -- (7.15,1.2) node[midway, above=1mm]{$s_1$};
    
    \end{tikzpicture}
}       
\end{subfloat}
\caption{captionfig1}
\label{Slika:fig1}

\end{figure}


\end{document}