Skip to content

Improved tex escaping of strings for labelling

This PR improves the gwpy.plotter.tex.label_to_latex method used to escape LaTeX control characters in labels for plotting. The behaviour now is to avoid doubly-escaping already escaped strings. See the new function documentation for examples.

This PR also includes improvements to the documentation of the other public methods in the gwpy.plotter.tex module.

Merge request reports