拟合 Tikz 图片

拟合 Tikz 图片

我尝试在每条光束下画一个脉冲来指示其强度,但尺寸不适合我

    \documentclass[border=2mm]{standalone}
\usepackage{xcolor}
\definecolor{lava}{rgb}{0.81, 0.06, 0.13}
\usepackage{tikz}
\usetikzlibrary{angles, arrows.meta, quotes} 
\usepackage{pgfplots,tikz}
                    
\begin{document}
\pgfplotsset{myplot/.style={ samples=50, smooth, no marks,hide axis}}
\begin{tikzpicture}[
      every node/.style={rounded corners},
      declare function={
        normalpdf(\x,\mu,\sigma)=
        (2*pi*\sigma^2)^(-0.5)*exp(-(\x-\mu)^2/(2*\sigma^2));
      }]
    \foreach \x in {2,...,10}   
        \shade[draw,shading=radial, inner color=red!\x0,draw=white]
                ({10-\x},0) circle (1/\x);
               
      \begin{axis}[  myplot]
    
    
        \addplot[smooth, thick, domain=1.2:2.2]
        {normalpdf(x,1.7,.3)} {};
        
    
      \end{axis}
     
\end{tikzpicture}
    
\end{document}

            

相关内容