plotting without LaTeX ("File `type1cm.sty' not found" on Cardiff JupyerHub)
Trying to run the GW190412 samples release notebook on the Cardiff JupyterHub with igwn-py37, the PESummary plotting commands (e.g. _1d_histogram_plot()
) all throw errors that boils down to
! LaTeX Error: File `type1cm.sty' not found.
My workaround is to set plt.rc('text', usetex=False)
after importing PESummary, but it would be nice if it either would automatically decide to fall back to TeX-less rendering, or give a user option to do so.
According to Charlie, there should already be some sort of check to see if latex is installed
, but either this isn't triggering at all here, or maybe there is a partial install but just that font file is missing.
Not urgent, since the workaround works.
(Why the igwn-py37 doesn't contain LaTeX fonts is another interesting question, but beyond this issue tracker.)