latex_plot_format error with \mathdefault{}
The new `@latex_plot_format` decorator, coming from the [core.utils](https://git.ligo.org/lscsoft/bilby/-/blob/master/bilby/core/utils.py#L1171) file, is very handy but it sometimes bugged some of my plots with the following error: ``` [...] File "/anaconda3/envs/hmc/lib/python3.7/site-packages/matplotlib/texmanager.py", line 307, in _run_checked_subprocess exc=exc.output.decode('utf-8'))) RuntimeError: latex was not able to process the following string: b'$\\\\times\\\\mathdefault{10^{5}}\\\\mathdefault{}$' [...] ! Undefined control sequence. l.14 ...}{15.000000}{\sffamily $\times\mathdefault {10^{5}}\mathdefault{}$} [...] ``` This bit of latex string would appear at the top of an x/y-axis as shown in the image I attached.![mathdefault_on_axis](/uploads/efb5e0c3bf2168f2c2265e17b0034504/mathdefault_on_axis.png) I am not entirely sure whether this error is specific to my installation of python/latex but I don't think so. However I found a way around this thanks to [this stackoverflow post](https://stackoverflow.com/questions/52222233/matplotlib-latex-error-when-using-logarithmic-axis-scale-version-dependent). As explained there, "`\mathdefault` is a command defined in python, and not as a base command of Latex.". Hence the solution is to define this command in matplotlib's rcParams with: ```py rcParams['text.latex.preamble'] = r'\newcommand{\mathdefault}[1][]{}' ``` So I would add this line to the `latex_plot_format()` function.
issue