api
api copied to clipboard
Get the coordinate value of the energy band diagram
Hi! How do I get the coordinates of the picture I framed below?
Is there an API that can be called, or does MPrester have a method to get the corresponding value?
You can get access to the underlying band data via the pymatgen object returned by MPRester.get_bandstructure_by_material_id
. Specifically, if the object returned is bandstructure
, the coordinates and labels can be extracted from bandstructure.bands
, bandstructure.distance
, and bandstructure.branches
Thank you very much,that solved my problem!
Hi, I'm sorry to bother you again. If I want to get the purple point in the picture, what method should I use? I just read the document and couldn't find the relevant method.
You can access those with the get_cbm()
and get_vbm()
methods. Please consult the pymatgen documentation.