-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathfermi-dirac-distro.tex
35 lines (28 loc) · 1012 Bytes
/
fermi-dirac-distro.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
\documentclass{standalone}
\usepackage{pgfplots,mathtools}
\pgfplotsset{compat=newest}
\def\xmax{2.3}\def\ymax{1.2}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xlabel=$\epsilon/\mu$,
ylabel=$n(\epsilon)$,
domain=0:\xmax,ymax=\ymax,
ytick={0.5,1},
smooth,thick,
axis lines=center,
every tick/.style={thick},
legend cell align=left]
% Graphs
\def\chempot{1}
\def\n#1{1/(e^(#1*(x - \chempot)) + 1)}
\addplot[color=red]{\n{5}};
\addplot[color=orange,samples=100]{\n{25}};
\addplot[const plot,color=blue] coordinates {(0,1) (\chempot,0) (\xmax,0)};
\legend{$k_\text{B} T = \frac{1}{5} \mu$,$k_\text{B} T = \frac{1}{25} \mu$,$T = 0$}
% Thermal fluctuations
\draw [thin,dashed] (\chempot-0.25,1.1) -- (\chempot-0.25,0) -| (\chempot+0.25,1.1);
\draw [thin,<->,shorten >=1,shorten <=1] (\chempot-0.25,1.05) -- (\chempot+0.25,1.05) node[midway,above] {$\propto 1/\beta$};
\end{axis}
\end{tikzpicture}
\end{document}