答案1
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning, arrows.meta}
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}
\draw[->] (0,0) to (10,0);
\foreach \x/\q/\w in {1/Text1,4/Text2,6/Text3,9/Text4}{
\draw[line width=1pt, red] (\x,-2mm) node[below, black](\x){\q} -- (\x,2mm);
}
\draw[dashed, blue, semithick] (5,2) node[left, xshift=-2.5cm]{Period1} node[right, xshift=2.5cm]{Period2} --(5,-2);
\end{tikzpicture}
\caption{Time Line Diagram} \label{fig:M1}
\end{figure}
\end{document}
编辑以回应 OP 问题
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning, arrows.meta}
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}
\draw[->] (0,0) to (10,0);
\foreach \x/\q/\w in {1/Text1,4/Text2,6/Text3,9/Text4}{
\draw[line width=1pt, red] (\x,-2mm) node[below, black](\x){\q} -- (\x,2mm);
}
\draw[dashed, blue, semithick] (5,2) node[left, xshift=-2.5cm, yshift=-1cm]{Period1} node[right, xshift=2.5cm]{Period2} --(5,-2);
\end{tikzpicture}
\caption{Time Line Diagram} \label{fig:M1}
\end{figure}
\end{document}