User Tools

Site Tools


latex:exampe_eta

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
latex:exampe_eta [2022/12/02 15:43] iwnlatex:exampe_eta [2022/12/02 15:44] (current) iwn
Line 25: Line 25:
 \begin{tikzpicture}[scale=3] \begin{tikzpicture}[scale=3]
      
-  % limits+  % setting
   \def\R{1.2}   \def\R{1.2}
      
Line 44: Line 44:
 % PSEUDORAPIDITY with manual for-loop over theta, eta % PSEUDORAPIDITY with manual for-loop over theta, eta
 \begin{tikzpicture}[scale=3] \begin{tikzpicture}[scale=3]
 +  
 +  % setting
   \def\R{1.2} % radius/length of lines   \def\R{1.2} % radius/length of lines
 +  
 +  % axis labels
   \node[scale=1,below left=1] at (0,\R) {$y$}; % y axis   \node[scale=1,below left=1] at (0,\R) {$y$}; % y axis
   \node[scale=1,below left=1] at (\R,0) {$z$}; % z axis   \node[scale=1,below left=1] at (\R,0) {$z$}; % z axis
 +  
 +  % lines
   \foreach \t/\e in {90/0,60/0.55,45/0.88,30/1.32,10/2.43,0/+\infty}{ % loop over theta/eta   \foreach \t/\e in {90/0,60/0.55,45/0.88,30/1.32,10/2.43,0/+\infty}{ % loop over theta/eta
     \pgfkeys{/pgf/number format/precision=2}     \pgfkeys{/pgf/number format/precision=2}
Line 54: Line 60:
   }   }
   %\draw[black!60!red,thick] (0,0.1*\R) |- (0.1*\R,0) ; % overlap in corner   %\draw[black!60!red,thick] (0,0.1*\R) |- (0.1*\R,0) ; % overlap in corner
 +  
 \end{tikzpicture} \end{tikzpicture}
  
Line 59: Line 66:
 % PSEUDORAPIDITY with automatic calculation of eta % PSEUDORAPIDITY with automatic calculation of eta
 \begin{tikzpicture}[scale=3] \begin{tikzpicture}[scale=3]
-  \pgfkeys{/pgf/number format/precision=2} two decimals+   
 +  setting
   \def\R{1.2} % radius/length of lines   \def\R{1.2} % radius/length of lines
 +  
 +  % axis labels
   \node[scale=1,below left=1] at (0,\R) {$y$}; % y axis   \node[scale=1,below left=1] at (0,\R) {$y$}; % y axis
   \node[scale=1,below left=1] at (\R,0) {$z$}; % z axis   \node[scale=1,below left=1] at (\R,0) {$z$}; % z axis
 +  
 +  % lines
 +  \pgfkeys{/pgf/number format/precision=2} % two decimals
   \foreach \t in {90,60,45,30,10,0}{ % loop over theta   \foreach \t in {90,60,45,30,10,0}{ % loop over theta
     \ifnum \t = 0     \ifnum \t = 0
Line 77: Line 90:
   }   }
   %\draw[black!60!red,thick] (0,0.1*\R) |- (0.1*\R,0) ; % overlap in corner   %\draw[black!60!red,thick] (0,0.1*\R) |- (0.1*\R,0) ; % overlap in corner
 +  
 \end{tikzpicture} \end{tikzpicture}
  
latex/exampe_eta.txt · Last modified: 2022/12/02 15:44 by iwn