Functions to read plot-files of xmgrace.
Module Contents
Functions
-
aim2dat.io.xmgrace.read_band_structure(file_path, kpoints)[source]
Read xmgrace band structure file.
- Parameters:
-
- Returns:
band_structures (list) – List of band structures.
-
aim2dat.io.xmgrace.read_xmgrace_file(file_path)[source]
Read xmgrace plot filies.
Up to now the functionality is very limited. xy-data is read and grouped by the line-color.
Notes
TODO: Increase functionality and generality.
- Parameters:
file_path (str) – Path to the xmgrace file.
- Returns:
x_values (list) – Nested list of the x-values.
y_values (list) – Nested list of the y-values.
tick_labels (tuple) – Tuple of dictionaries containing the position on the x-axis (“pos”) and the label
(“label”).