File: kpoints.py

package info (click to toggle)
python-ase 3.26.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,484 kB
  • sloc: python: 148,112; xml: 2,728; makefile: 110; javascript: 47
file content (11 lines) | stat: -rw-r--r-- 265 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
# creates: cc.png
import matplotlib.pyplot as plt
import numpy as np

from ase.dft.kpoints import cc162_1x1

B = [(1, 0, 0), (-0.5, 3**0.5 / 2, 0), (0, 0, 1)]
k = np.dot(cc162_1x1, B)
plt.figure(figsize=(5, 4))
plt.plot(k[:, 0], k[:, 1], 'o')
plt.savefig('cc.png')