Skip to content

Commit 6b14b7f

Browse files
authored
fix: phonon dispersion plot (#39)
* fix: phonon dispersion plot See #36 (comment) Closes #36 * chore: update globe icon
1 parent fc164dd commit 6b14b7f

7 files changed

Lines changed: 493 additions & 476 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*.log
55
*.rap
66
*.ps
7+
.venv
78

89
# Dependencies
910
/node_modules

docs/hands-on/phonon.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ data = np.loadtxt("../src/GaAs-phonon/GaAs.freq.gp")
9090

9191
nbands = data.shape[1] - 1
9292
for band in range(nbands):
93-
plt.plot(data[:, 0], data[:, band], linewidth=1, alpha=0.5, color='k')
93+
plt.plot(data[:, 0], data[:, band + 1], linewidth=1, alpha=0.5, color='k')
9494
# High symmetry k-points (check matdyn.GaAs.in)
9595
plt.axvline(x=data[0, 0], linewidth=0.5, color='k', alpha=0.5)
9696
plt.axvline(x=data[20, 0], linewidth=0.5, color='k', alpha=0.5)

notebooks/GaAs-phonon.ipynb

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 484 additions & 467 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@docusaurus/core": "^3.8.1",
1919
"@docusaurus/faster": "^3.8.1",
2020
"@docusaurus/preset-classic": "^3.8.1",
21-
"@easyops-cn/docusaurus-search-local": "^0.51.1",
21+
"@easyops-cn/docusaurus-search-local": "^0.52.0",
2222
"@mdx-js/react": "^3.1.0",
2323
"@svgr/webpack": "^8.1.0",
2424
"clsx": "^2.1.1",

src/css/common.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,10 @@ a:hover {
211211

212212
.header-homepage-link:before {
213213
content: "";
214-
width: 22px;
215-
height: 22px;
214+
width: 24px;
215+
height: 24px;
216216
display: flex;
217-
transform: translate(-2px);
218-
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M352 256c0 22.2-1.2 43.6-3.3 64H163.4c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64h185.3c2.2 20.4 3.3 41.8 3.3 64m28.8-64h123.1c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64m112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6 78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.1-36.4 15.5-68.6 27-94.7 10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5 11.6 26 20.9 58.2 27 94.7m-209 0H18.6c30-74.1 93.6-130.9 172-151.6-25.5 34.2-45.3 87.7-55.3 151.6M8.1 192h123.1c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64m186.6 254.6c-11.6-26-20.9-58.2-27-94.6h176.6c-6.1 36.4-15.5 68.6-27 94.6-10.5 23.6-22.2 40.7-33.5 51.5-11.2 10.7-20.5 13.9-27.8 13.9s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6-78.4-20.7-142-77.5-172-151.6zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6 25.5-34.2 45.2-87.7 55.3-151.6h116.7z'/%3E%3C/svg%3E") no-repeat;
217+
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='9.6' stroke-width='1.8'/%3E%3Cpath d='M16.8 12c0 2.766-.605 5.23-1.545 6.975C14.3 20.75 13.111 21.6 12 21.6s-2.299-.849-3.256-2.625C7.805 17.23 7.2 14.766 7.2 12s.605-5.23 1.544-6.975C9.701 3.25 10.89 2.4 12 2.4s2.299.849 3.255 2.625C16.195 6.77 16.8 9.234 16.8 12Z' stroke-width='1.8'/%3E%3Cpath d='M20 17c0-1.105-3.582-2-8-2s-8 .895-8 2M4 7c0 1.105 3.582 2 8 2s8-.895 8-2m-8-3.8v17.6' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat;
219218
}
220219

221220
.navbar {

static/img/GaAs-phonon.webp

692 Bytes
Loading

0 commit comments

Comments
 (0)