gwsumm.plot.utils module¶
Utilies for GWSumm plotting
- gwsumm.plot.utils.get_column_string(column)[source]¶
Format the string columnName (e.g. xml table column) into latex format for an axis label.
- Parameters:
- columnstr
string to format
Examples
>>> get_column_string('snr') 'SNR' >>> get_column_string('bank_chisq_dof') r'Bank $\chi^2$ DOF'
- gwsumm.plot.utils.hash(string, num=6)[source]¶
Generate an N-character hash string based using string to initialise
- Parameters:
- stringstr
the initialisation string
- numint, optional
the length of the hash to produce
- Returns:
- hashstr
the new hash
Examples
>>> from gwsumm.plot.utils import hash >>> print(hash("I love gravitational waves")) 80c897