-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathbose-einstein-distribution.tex
39 lines (26 loc) · 1.11 KB
/
bose-einstein-distribution.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
36
37
38
39
\documentclass{standalone}
\usepackage{pgfplots,mathtools}
\pgfplotsset{compat=newest}
\usetikzlibrary{intersections}
\let\Re\relax
\DeclareMathOperator{\Re}{Re}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
domain = 0:2, ymax = 5,
xlabel = $\Re(p_0)$,
ylabel = $n_\text{B}(p_0)$,
ticks=none, smooth,
thick, axis lines = left,
every tick/.style = {thick},
width=8cm, height=7cm]
\def\nB#1{1/(e^(x/#1) - 1) + 1/2}
\addplot[name path=T1, color=red] {\nB{0.5}};
\addplot[name path=T2, color=yellow] {\nB{1}};
\addplot[name path=T3, color=blue] {\nB{2}};
\addplot[draw=none, name path=aux] {3*x};
\end{axis}
\draw[shorten >=2, shorten <=2, name intersections={of=T1 and aux, name=int1}, name intersections={of=T2 and aux, name=int2}] (int1-1) edge[->, bend left] node[midway, below right=-1pt, font=\scriptsize] {$2 \cdot T$} (int2-1);
\draw[shorten >=2, shorten <=2, name intersections={of=T3 and aux, name=int3}] (int2-1) edge[->, bend left] node[midway, below right=-1pt, font=\scriptsize] {$2 \cdot T$} (int3-1);
\end{tikzpicture}
\end{document}