Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
RUCO13 committed Aug 31, 2022
1 parent bae917f commit 17402e8
Show file tree
Hide file tree
Showing 11 changed files with 659 additions and 153 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
249 changes: 249 additions & 0 deletions phd-thesis/beamer/beamer-figures/physical-model/m43140-ioa.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,249 @@
\documentclass[border=0mm]{standalone}
\usepackage{pgfplotstable}
\tikzset{
axis break gap/.initial=1mm
}

\usepackage{amsmath,bm}
\usepackage{tikz}
\usetikzlibrary{arrows,
arrows.meta,
decorations.pathmorphing,
calc,%
decorations.pathmorphing,%
decorations.markings,
fadings,%
shadings,%
positioning,
spy,
shapes,
shapes.geometric,
shapes.arrows,
fit, plotmarks,}

\usepackage{tikz-dimline}

\pgfplotsset{
width=4cm,
height=2.5cm,
scale only axis,
xmin = 295, xmax=330.72,
%yticklabel style={/pgf/number format/fixed},
every axis/.append style = {
line width = 0.4pt,
tick style = {line width=0.4pt,black},
%tick label style={font=\tiny},
every tick label/.append style={scale=0.7},
major tick length = 0.8mm,
minor tick length = 0.4mm,
%axis line style = thick,
},
every axis plot/.append style={line width = 0.7pt,}
}
\pgfplotsset{
compat=newest,
/pgfplots/legend image code/.code={%
\draw[mark repeat=1,mark phase=1,#1]
plot coordinates {
(0cm,0cm)
(0.0cm,0cm)
(0.0cm,0cm)
(0.0cm,0cm)
(0.3cm,0cm)%
};
},
}
\def\eu{1.5327}
\def\ed{1.5412}
\def\hhu{-0.0047}
\def\hhd{-0.0055}
\def\lhu{-0.0097}
\def\lhd{-0.0164}



\begin{document}
\begin{tikzpicture}




%========================================================================== %
% %
% PLOT WAVEFUNCTIONS %
% %
% %
%===========================================================================%

%================================ PLOT VB

%================================ PLOT CB

\begin{axis}[
ymin = 1.515, ymax = 1.64,
scaled y ticks=false,
minor y tick num=1,
xtick = {312.86},
xticklabels = {0},
ytick = \empty,
%============= Legend Plots ========================
legend entries={e},
legend style={at={(axis cs: 322.56,1.625)},
anchor=center,
draw=none,
fill=none,
inner sep=3pt,
nodes={scale=0.8,yshift=-0.2mm}},
legend cell align = left,
%legend image post style={scale=0.4},
xlabel ={$z$ (nm)},
every axis x label/.style= {
at={(axis description cs:0.5,-0.17)},
%rotate=90,
scale=0.8},
%============================== break plot
name = top axiss,
% Parameters
]

%%%================================= Add Data ===================================
\pgfplotstableread[col sep=comma]{../../../../../repos/cqws-codes/cqws-v2/data/potentials-m43140.txt}{\vp};
%\pgfplotstableread[col sep=comma]{../../DATA_M4_3140/PSIelectron_data_M4_3140.dat}{\psie};
\pgfplotstableread[col sep=comma]{../../../../../repos/cqws-codes/cqws-v2/data/psi-e-m43140.txt}{\psie};
%%
%\addlegend[yshift=0mm]{,color=blue}
\addplot[line width = 0.5pt,forget plot] table[x index=0,y index=1]{\vp};
\addplot[smooth,blue,fill=blue,fill opacity=0.5] table[x index=0,y index=1]{\psie};
\addlegendentry[yshift = -0.3mm,opacity = 1]{e};



\coordinate (pos2) at (axis cs:312.86,1.64);
\coordinate (pos1) at (axis cs:312.86,1.519);

\dimline[color= black,
line style = {line width=0.4},
label style = {rotate=0,midway,scale=0.5},
] {(axis cs:300,1.615)}{(axis cs: 311.87,1.615)}{$d_{1}$};
\dimline[color= black,
line style = {line width=0.4},
label style = {rotate=0,midway,scale=0.5},
] {(axis cs:313.85,1.615)}{(axis cs: 327.72,1.615)}{$d_{2}$};



\end{axis}





\draw[densely dashed, line width = 0.3pt] (pos1)--(pos2);


%========================================================================== %
% %
% PLOT ENERGY %
% %
% %
%===========================================================================%



% \begin{axis}[width=0.8cm,
% height=1.21cm,
% anchor=north,
% at={(top axiss.east)},
% xshift = 0.5cm,
% yshift = -0.5mm,
% name=bottom axis,
% scale only axis,
% axis x line*=bottom,
% scale only axis,
% xmin=0, xmax=1.1,
% %ytick pos=right,
% ymin=-0.018,ymax=-0.0046,
% %Parameters
% yticklabel style={
% /pgf/number format/fixed,
% /pgf/number format/precision=3,
% /pgf/number format/fixed zerofill
% },
% scaled y ticks=false,
% minor y tick num=1,
% xtick = {0.3,0.8},
% xticklabels={ N, N },
% ytick=\empty,
% %============== Axis labels ==============================
% ]
% \addplot[mark=none,red,line width=0.5pt] coordinates {(0.1,\hhu) (1,\hhu)};
% %\addplot[mark=none,red,line width=0.5pt,densely dotted] coordinates {(0.5,\hhu) (1,\hhu)};
% \addplot[mark=none,black!50!green,line width=0.5pt] coordinates {(0.1,\lhu) (1,\lhu)};
% %\addplot[mark=none,black!50!green,line width=0.5pt,densely dotted] coordinates {(0.5,\lhu) (1,\lhu)};


% \addplot[mark=none,red,line width=0.5pt] coordinates {(0.1,\hhd) (1,\hhd)};
% %\addplot[mark=none,red,line width=0.5pt,densely dotted] coordinates {(0.1,\hhd) (0.6,\hhd)};
% \addplot[mark=none,black!50!green,line width=0.5pt] coordinates {(0.1,\lhd) (1,\lhd)};
% %\addplot[mark=none,black!50!green,line width=0.5pt,densely dotted] coordinates {(0.1,\lhd) (0.6,\lhd)};

% \draw[{Stealth[scale=0.3]}-{Stealth[scale=0.3]}] (axis cs:0.5,\hhu)--(axis cs:0.5,\hhd);
% \draw[{Stealth[scale=0.5]}-{Stealth[scale=0.5]}] (axis cs:0.5,\lhu)--(axis cs:0.5,\lhd);


% \node[scale=0.4] at (axis cs:0.6,-0.0065) {$\Delta E_{H}$};
% \node[scale=0.4] at (axis cs:0.75,-0.013) {$\Delta E_{L}$};
% \end{axis}



% \begin{axis}[
% width=0.8cm,
% height=1.21cm,
% scale only axis,
% xmin=0, xmax=1.1,
% ymin = 1.529, ymax= 1.545,
% y tick label style={
% /pgf/number format/.cd,
% fixed,
% fixed zerofill,
% precision=3,
% },
% scaled y ticks=false,
% minor y tick num=1,
% %xtick = { },
% %xticklabel={e},
% xtick style={draw=none},
% xticklabels={\empty},
% ytick=\empty,
% %ytick pos=right,
% %============================== break plot
% name = top axis,
% at=(bottom axis.north),
% anchor=south, yshift=\pgfkeysvalueof{/tikz/axis break gap},
% scale only axis,
% axis x line*=top,
% after end axis/.code={
% \draw (rel axis cs:0,0) +(-0mm,0mm) -- +(1mm,0mm)
% ++(0pt,-\pgfkeysvalueof{/tikz/axis break gap})
% +(-0mm,-0mm) -- +(1mm,0mm)
% (rel axis cs:1,0) +(-1mm,-0mm) -- +(0mm,0mm)
% ++(0pt,-\pgfkeysvalueof{/tikz/axis break gap})
% +(-1mm,-0mm) -- +(0mm,0mm);
% },



% % Parameters
% ]

% \addplot[mark=none,blue,line width=0.5pt] coordinates {(0.1,\eu) (1,\eu)};
% \addplot[mark=none,blue,line width=0.5pt] coordinates {(0.1,\ed) (1,\ed)};

% \draw[{Stealth[scale=0.5]}-{Stealth[scale=0.5]}] (axis cs:0.5,\eu)--(axis cs:0.5,\ed);
% \node[scale=0.4] at (axis cs:0.72,1.5375) {$\Delta E_{e}$};
% \end{axis}


\end{tikzpicture}
\end{document}
Loading

0 comments on commit 17402e8

Please sign in to comment.