Skip to content Skip to sidebar Skip to footer

Disable Tex Interpreter In Matplotlib

I would like to produce plots using matplotlib (through anaconda-spider installed on os x yosemite) and put labels on it not interpreted by tex. Here is the sample code: # -*- codi

Solution 1:

You are not getting any latex mode. You are simply using the mathtex feature of matplotlib. Using latex is a different thing. I checked whether it is possible to switch off mathtex for matplotlib, and there is a quiet recent issue on this (see here). However, the way to sort out this problem consist is avoiding the math just escaping the $ symbol with '\':

pp.xlabel('\$x\$')

Just remove all the stuff related to the text.usetex as you are trying to do a complete different thing here.

Post a Comment for "Disable Tex Interpreter In Matplotlib"