Tikz-代码建议?

Tikz-代码建议?

Tikz:

我想画一个光学图形,激光。见图。有人能帮我吗?有什么代码建议吗?

这是MWE:

\begin{figure}[htb] 
\centering 

% \begin{tikzpicture}[font=\large] 

% Rektangel: \tikz \shade (0,0) rectangle (3,2); 
% (x,y) (x,y) \tikzset{LL/.style={draw=black, decorate, decoration={snake, segment length=3mm, amplitude=2mm,post length=2mm}}} 

% \draw[LL,->,>=latex,thick,black](0,1) -- (4,1)node[right]{$\ket{\alpha e^{-2i\omega t}}$}; 

% % \end{tikzpicture} 

% \caption{Strong laser described by $\ket{\alpha e^{-2i\omega t}}$.}
\label{fig:M1} 
\end{figure}

答案1

从你的“MWE”中我得出结论,你可能喜欢画这样的东西: 在此处输入图片描述

\documentclass[12pt]{article}
\usepackage{tikz}
    \usetikzlibrary{arrows,decorations,decorations.pathmorphing,patterns}
\usepackage{braket}
    \begin{document}
\begin{figure}
\centering
    \begin{tikzpicture}[
    font = \large,
       > = angle 90,
L/.style = {decoration={snake, pre=lineto, pre length=2mm},
            very thick, red}
                        ]
\node[draw,minimum width=30mm,minimum height=20mm,
      pattern=north east lines]    (n1) {};
\draw[decorate,L,<-] (n1) to node[above] {$\ket{\alpha e^{-2i\omega t}}$} +(-44mm,0mm);
    \end{tikzpicture}
\caption{Strong laser described by $\ket{\alpha e^{-2i\omega t}}$.}
    \label{fig:M1}
\end{figure}
    \end{document}

相关内容