I want to plot constant-energy two-dimensional contour maps of spin texture in the kx-ky plane for a monolayer material, centered at the Γ point near the Fermi level (EF). However, when using pyprocar, a warning pops up, and I am unsure whether the spin information is correctly reflected in the plot.
import pyprocar
import matplotlib.pyplot as plt
data_dir = r"D:\xiazai\python
fermi_energy = -2.1791
绘制自旋纹理
pyprocar.fermi2D(
code="vasp",
dirname=data_dir,
energy=-0.7,
fermi=fermi_energy,
spin_texture=True,
spin_projection="x",
mode='spin_texture',
cmap="seismic",
vmin=-0.5,
vmax=0.5,
arrow_size=0,
no_arrow=True,
color_bar=True,
)
After the image appears, a warning pops up.
Warning (from warnings module):
File "D:\xiazai\python\lib\site-packages\pyprocar\core\fermisurface.py", line 836
self.scatter_handles.append(self.ax.scatter(
UserWarning: No data for colormapping provided via 'c'. Parameters 'cmap', 'norm' will be ignored,
Thank you for your reply.
I want to plot constant-energy two-dimensional contour maps of spin texture in the kx-ky plane for a monolayer material, centered at the Γ point near the Fermi level (EF). However, when using pyprocar, a warning pops up, and I am unsure whether the spin information is correctly reflected in the plot.
import pyprocar
import matplotlib.pyplot as plt
data_dir = r"D:\xiazai\python
fermi_energy = -2.1791
绘制自旋纹理
pyprocar.fermi2D(
code="vasp",
dirname=data_dir,
energy=-0.7,
fermi=fermi_energy,
spin_texture=True,
spin_projection="x",
mode='spin_texture',
cmap="seismic",
vmin=-0.5,
vmax=0.5,
arrow_size=0,
no_arrow=True,
color_bar=True,
)
After the image appears, a warning pops up.
Warning (from warnings module):
File "D:\xiazai\python\lib\site-packages\pyprocar\core\fermisurface.py", line 836
self.scatter_handles.append(self.ax.scatter(
UserWarning: No data for colormapping provided via 'c'. Parameters 'cmap', 'norm' will be ignored,
Thank you for your reply.