1

How do you get the font on plots to be Computer Modern Roman font? Using commands like

mpl.rc('font', **{'family': 'serif', 'serif': ['Computer Modern']})
mpl.rc('text', usetex=True)

Just give me the error:

Failed to process string with tex because latex could not be found 
Anon
  • 69
  • 1
  • 6
  • Does this answer your question? [RuntimeError: Failed to process string with tex because latex could not be found](https://stackoverflow.com/questions/58121461/runtimeerror-failed-to-process-string-with-tex-because-latex-could-not-be-found) – Mr. T Dec 18 '20 at 04:08

1 Answers1

0

You may need to install LaTeX and ensure it works in your terminal first. See this: RuntimeError: Failed to process string with tex because latex could not be found

GZZ
  • 41
  • 7