New arguments for plot_bs
These new arguments allow actions on specific bands using the existing band_ids keyword.
band_labels - labels specific bands and creates a legend for these bands to the plot.
band_colors - colour specific bands
Both these arguments take a list of size equal to the number of bands in band_ids.
New functions
_check_user_input_str_mask and _setup_str_mask, both of which are local to plot_bs are used to check the user has specified the input data correctly and setup the appropriate character mask array respectively.
These functions should make it easier to add similar keyword arguments for bands in the future.
New Examples
NaCl_label_bands - an example of how to label bands and colour them for a spin degenerate calculation
MnO_label_bands - an example of how to label bands and colour them for a spin polarised calculation. Incidentally, this is also the first example on the somewhat non-trivial of use the band_ids keyword for a spin-polarised calculation!
Misc Changes
Formatted code to autopep8 for readability and deleted trailing whitespace.
New arguments for
plot_bs
These new arguments allow actions on specific bands using the existingband_ids
keyword.band_labels
- labels specific bands and creates a legend for these bands to the plot.band_colors
- colour specific bands Both these arguments take a list of size equal to the number of bands in band_ids.New functions
_check_user_input_str_mask
and_setup_str_mask
, both of which are local toplot_bs
are used to check the user has specified the input data correctly and setup the appropriate character mask array respectively. These functions should make it easier to add similar keyword arguments for bands in the future.New Examples
NaCl_label_bands
- an example of how to label bands and colour them for a spin degenerate calculationMnO_label_bands
- an example of how to label bands and colour them for a spin polarised calculation. Incidentally, this is also the first example on the somewhat non-trivial of use theband_ids
keyword for a spin-polarised calculation!Misc Changes Formatted code to autopep8 for readability and deleted trailing whitespace.