小轴,3D 矢量图-箭头旋转

小轴,3D 矢量图-箭头旋转

有人知道如何将 Z2 箭头旋转 90 度以实现蓝色的 Z2 箭头吗?该图仅显示小轴,其功能是描述 3D 矢量图中的功能。

Z2 箭头旋转(蓝色)

我创建的代码如下:

\documentclass[border=3pt,tikz]{standalone}

\usepackage{amsmath} % for \text
\usepackage{tikz}
\usepackage{physics}
\tikzset{>=latex} 
\usepackage{xcolor}
\usetikzlibrary{3d}


\colorlet{vcol}{blue!50!black}
\colorlet{Hcol}{blue!90!white!80}

\colorlet{Scol}{red!85!red!85!black!90}
\def\tick#1#2{\draw[thick] (#1) ++ (#2:0.2) --++ (#2-180:0.4)}


\colorlet{vcol}{blue!50!black}
\colorlet{Hcol}{red!40!white!80}

\begin{document}

\begin{tikzpicture}[x=(-15:0.9), y=(90:0.9), z=(-155:1.1),
                    line cap=round, line join=round,
                    axis/.style={black, thick,->},
                    vector/.style={>=stealth,->},
                    system/.style={below,align=center,scale=0.73}] 
  \large
  \def\A{1.5}                  % amplitude
  \def\nNodes{5}               % use even number
  \def\nVectorsPerNode{8}      % number of vectors per node
  \def\omeg{1.5}               % angular frequency
  \def\xmax{\nNodes*pi/\omeg*1.15}
  \def\ymax{1.8*\A}
  \def\zmax{1.8*\A}
  
  \def\quart{pi/2/\omeg}       % quarter wavelength for origin shift
  \pgfmathsetmacro\nVectors{(\nVectorsPerNode+1)*\nNodes}
  

 \def\xOffset{{(\nNodes-1)*pi/2}}
  \def\yOffset{\A*1.2}
  \def\zOffset{\A*2.2}
  \draw[axis, ->, black] (\xOffset,\yOffset,-\zOffset, -\yOffset) -- ++(\A*1.6,0,0,0) node[right,align=center]{x}; 
  
\draw[axis, ->, blue!90!white!80]  (\xOffset,\yOffset,-\zOffset, -\yOffset) -- ++(0,\A*0.6,0,0) node[right] {Z2};
    
  \draw[axis, ->, red!85!red!85!black!90]   (\xOffset,\yOffset,-\zOffset, -\yOffset) -- ++(0,0,\A*0.6,0) node[above left] {Z1};
  
 \draw[dashed, ->, black!90]   (\xOffset,\yOffset,-\zOffset, -\yOffset) -- ++(-90:1.2) node[right,align=center]{AAAA};
 
  }
\end{tikzpicture}

\end{document}

任何帮助深表感谢!

相关内容