skued.indices_to_text

skued.indices_to_text(h, k, l)

Returns a Matplotlib-compatible string representation of Miller indices, in LaTeX/Mathjax format.

New in version 2.0.2.

Parameters:
  • h (int) – Miller indices

  • k (int) – Miller indices

  • l (int) – Miller indices

Returns:

s – Matplotlib-compatible representation

Return type:

string

Examples

>>> from skued import indices_to_text
>>> indices_to_text(1,0,0)
'(100)'
>>> indices_to_text(2,-1,1) 
'(2$\bar{1}$1)'