Skip to content
Snippets Groups Projects
Commit e801a9ea authored by Anton Akhmerov's avatar Anton Akhmerov
Browse files

and another plot bites the dust

parent 351ad894
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,31 @@ from common import draw_classic_axes
T = [222.4, 262.4, 283.7, 306.4, 331.3, 358.5, 413.0, 479.2, 520.0, 879.7, 1079.7, 1258.0],
c = [0.384, 0.578, 0.683, 0.798, 0.928, 1.069, 1.343, 1.656, 1.833, 2.671, 2.720, 2.781]
def plot_n_e():
fig, (ax, ax2) = pyplot.subplots(ncols=2, figsize=(10, 5))
omega = np.linspace(0.1, 2)
ax.plot(omega, 1/(np.exp(omega) - 1))
ax.set_ylim(0, top=3)
ax.set_xlim(left=0)
ax.set_xlabel(r'$\hbar \omega$')
ax.set_xticks([0, 1])
ax.set_xticklabels(['$0$', '$k_B T$'])
ax.set_ylabel('$n$')
ax.set_yticks([1, 2])
ax.set_yticklabels(['$1$', '$2$'])
draw_classic_axes(ax, xlabeloffset=.2)
T = np.linspace(0.01, 2)
ax2.plot(T, 1/2 + 1/(np.exp(1/T)-1))
ax2.set_ylim(bottom=0)
ax2.set_xlabel('$k_B T$')
ax2.set_xticks([0, 1])
ax2.set_xticklabels(['$0$', r'$\hbar \omega$'])
ax2.set_ylabel(r"$\bar\varepsilon$")
ax2.set_yticks([1/2])
ax2.set_yticklabels([r'$\hbar\omega/2$'])
draw_classic_axes(ax2, xlabeloffset=.15)
fig.savefig('bose_einstein.svg')
def c_einstein(T, T_E=1):
x = T_E / T
......@@ -73,6 +98,7 @@ def plot_debye():
def main():
os.chdir('docs/figures')
plot_n_e()
plot_einstein()
plot_debye()
......
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 21.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 425.2 95.2" style="enable-background:new 0 0 425.2 95.2;" xml:space="preserve">
<style type="text/css">
.st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
.st1{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;stroke-dasharray:2;}
.st2{clip-path:url(#SVGID_2_);}
.st3{clip-path:url(#SVGID_4_);}
.st4{clip-path:url(#SVGID_6_);}
.st5{clip-path:url(#SVGID_6_);fill:none;stroke:#000000;stroke-width:0.398;stroke-miterlimit:10;}
.st6{clip-path:url(#SVGID_8_);}
.st7{clip-path:url(#SVGID_10_);}
</style>
<g>
<g>
<line class="st0" x1="127" y1="80" x2="127" y2="5.7"/>
<g>
<polygon points="128.2,6.5 127,2.2 125.9,6.5 "/>
</g>
</g>
</g>
<g>
<g>
<line class="st0" x1="126.8" y1="80" x2="201.1" y2="80"/>
<g>
<polygon points="200.3,81.2 204.6,80 200.3,78.8 "/>
</g>
</g>
</g>
<path class="st0" d="M190.2,76.6c-33.3,0-60.2-26.9-60.2-60.2"/>
<g>
<g>
<line class="st0" x1="233.4" y1="80" x2="233.4" y2="5.7"/>
<g>
<polygon points="234.5,6.5 233.4,2.2 232.2,6.5 "/>
</g>
</g>
</g>
<g>
<g>
<line class="st0" x1="233.1" y1="80" x2="307.4" y2="80"/>
<g>
<polygon points="306.6,81.2 311,80 306.6,78.8 "/>
</g>
</g>
</g>
<line class="st1" x1="233.4" y1="80" x2="297.8" y2="15.6"/>
<path class="st0" d="M233.1,59c21.2,0,38.9-20,62.4-43.6"/>
<g>
<defs>
<rect id="SVGID_1_" x="115.2" y="4.7" width="7" height="5"/>
</defs>
<clipPath id="SVGID_2_">
<use xlink:href="#SVGID_1_" style="overflow:visible;"/>
</clipPath>
<path class="st2" d="M116.7,8.8c0,0.2-0.1,0.4-0.1,0.4c0,0.2,0.1,0.3,0.3,0.3c0.1,0,0.3-0.1,0.4-0.3c0,0,0.1-0.5,0.2-0.7l0.2-0.9
c0.1-0.2,0.1-0.4,0.2-0.7c0.1-0.2,0.1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.9c0-0.2,0.1-0.5,0.2-0.7c0.1-0.1,0.1-0.5,0.1-0.5
c0.1-0.2,0.6-1.2,1.6-1.2c0.4,0,0.5,0.4,0.5,0.7c0,0.6-0.5,1.8-0.6,2.3c-0.1,0.2-0.1,0.3-0.1,0.5c0,0.5,0.4,0.8,0.8,0.8
c1,0,1.3-1.5,1.3-1.5c0-0.1-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.2c-0.3,1-0.7,1.2-1,1.2c-0.2,0-0.2-0.1-0.2-0.3
c0-0.3,0.1-0.5,0.2-0.7c0.2-0.4,0.6-1.6,0.6-2.2c0-0.7-0.5-1.1-1.1-1.1c-0.3,0-0.9,0.1-1.5,0.7L194.4,85.6"/>
<path class="st3" d="M203.3,87.3c0-0.5-0.2-0.7-0.4-0.7c-0.3,0-0.5,0.2-0.5,0.5c0,0.1,0.1,0.2,0.1,0.3c0.2,0.1,0.3,0.4,0.3,0.8
s-0.2,1-0.5,1.4c-0.3,0.4-0.7,0.7-1.1,0.7c-0.6,0-0.9-0.3-1-0.9c0.1-0.3,0.3-0.9,0.3-1.2c0-0.1-0.1-0.2-0.2-0.2
c-0.1,0-0.2,0-0.3,0.2c-0.1,0.2-0.2,0.8-0.2,1.2c-0.3,0.5-0.7,0.9-1.3,0.9c-0.7,0-0.9-0.6-0.9-1.1c0-1.2,1-2.3,1-2.4
c0-0.1-0.1-0.2-0.2-0.2c-0.1,0-0.2,0.1-0.3,0.2c-0.5,0.7-0.9,1.9-0.9,2.8c0,0.7,0.2,1.4,1,1.4c0.7,0,1.2-0.5,1.5-1
c0.1,0.6,0.5,1,1.1,1c0.8,0,1.3-0.6,1.6-1.4C202.9,89.3,203.3,87.9,203.3,87.3"/>
</g>
<g>
<defs>
<rect id="SVGID_5_" x="215.3" y="49.3" width="15.7" height="18.3"/>
</defs>
<clipPath id="SVGID_6_">
<use xlink:href="#SVGID_5_" style="overflow:visible;"/>
</clipPath>
<path class="st4" d="M218,49.9c0-0.2,0-0.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.5,0.6c0,0.6-0.4,1.6-0.6,2c0,0.1-0.1,0.3-0.1,0.4c0,0.5,0.3,0.7,0.7,0.7
c0.8,0,1.1-1.3,1.1-1.3c0-0.1-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.2c-0.3,0.9-0.6,1.1-0.9,1.1c-0.2,0-0.2-0.1-0.2-0.3
c0-0.2,0.1-0.5,0.2-0.6c0.1-0.4,0.5-1.4,0.5-1.9c0-0.7-0.4-1-1-1c-0.3,0-0.8,0.1-1.3,0.7L223.1,56.6"/>
<path class="st4" d="M230.8,58.2c0-0.4-0.2-0.6-0.3-0.6c-0.2,0-0.5,0.2-0.5,0.4c0,0.1,0,0.2,0.1,0.3c0.1,0.1,0.3,0.4,0.3,0.7
c0,0.3-0.2,0.8-0.4,1.2c-0.3,0.4-0.6,0.7-1,0.7c-0.5,0-0.8-0.3-0.8-0.8c0.1-0.2,0.3-0.8,0.3-1c0-0.1,0-0.2-0.1-0.2
c-0.1,0-0.2,0-0.2,0.1c-0.1,0.2-0.2,0.7-0.2,1c-0.3,0.4-0.6,0.8-1.2,0.8s-0.7-0.5-0.7-1c0-1.1,0.9-2,0.9-2.1c0-0.1-0.1-0.2-0.2-0.2
c-0.1,0-0.2,0.1-0.2,0.2c-0.4,0.7-0.8,1.7-0.8,2.5c0,0.6,0.2,1.2,0.9,1.2c0.6,0,1-0.4,1.3-0.9c0.1,0.5,0.4,0.9,1,0.9
c0.7,0,1.1-0.5,1.4-1.2C230.5,59.9,230.8,58.7,230.8,58.2"/>
</g>
<g>
<defs>
<rect id="SVGID_7_" x="223.4" y="3.7" width="6" height="7"/>
</defs>
<clipPath id="SVGID_8_">
<use xlink:href="#SVGID_7_" style="overflow:visible;"/>
</clipPath>
<rect x="225" y="4.5" class="st6" width="3.6" height="0.3"/>
<path class="st6" d="M225.4,8c0.2-0.1,0.5-0.1,0.6-0.1c0.3,0,0.3,0,0.5,0.1C226.3,8,226.3,8,225.9,8C225.7,8,225.6,8,225.4,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.6,0,0.9,0c0.3,0,0.6,0,0.8,0c0.3,0,0.6,0,0.9,0c0.1,0,0.2,0,0.2-0.2c0-0.1-0.1-0.1-0.3-0.1
c-0.2,0-0.4,0-0.6,0c-0.3,0-0.4-0.1-0.4-0.2c0,0,0-0.1,0.1-0.2L307.2,85"/>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
</svg>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment