TeX in matplotlib on Mac OS X and TeX Live

前端 未结 1 481
南笙
南笙 2021-01-11 13:42

I have the following Hello World code to try out TeX rendering with matplotlib on my Mac.

import matplotlib.pyplot as plt
from matplotlib import rc

rc(\'tex         


        
相关标签:
1条回答
  • 2021-01-11 14:08

    In future you might want to mention that you're running the code from NetBeans. The Python path is not $PATH, instead it's sys.path, the path from which Python code is loaded. You need to set os.environ['PATH'] in your Python code; with TeX Live the preferred way to reference the current TeX installation is /usr/texbin.

    0 讨论(0)
提交回复
热议问题