Hi, I have an issue using latex in my plot file. Below are my information.
1. Operating system: Max OS X version 10.7.5 uname -a Darwin pyramid.phys.northwestern.edu 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64 2. matplotlib version: 1.3.0 3. Obtain matplotlib from EPD. Python 2.7.3 | 64-bit | (default, Aug 8 2013, 05:37:06) IPython 0.13.1 -- An enhanced Interactive Python. 4. Here is my matplotlibrc file, I don't have any special customizations 5. The python script that demonstrate the problem can be http://matplotlib.org/examples/pylab_examples/tex_demo.html 6. The debugging output from matplotlib is 7. I did not compile matplotlib myself. Bests, Hao
$HOME=/Users/hao matplotlib data path /Users/hao/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/matplotlib/mpl-data loaded rc file /Users/hao/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc matplotlib version 1.3.0 verbose.level helpful interactive is False platform is darwin CACHEDIR=/Users/hao/.matplotlib Using fontManager instance from /Users/hao/.matplotlib/fontList.cache backend MacOSX version unknown
matplotlibrc
Description: Binary data
""" Demo of TeX rendering. You can use TeX to render all of your matplotlib text if the rc parameter text.usetex is set. This works currently on the agg and ps backends, and requires that you have tex and the other dependencies described at http://matplotlib.sf.net/matplotlib.texmanager.html properly installed on your system. The first time you run a script you will see a lot of output from tex and associated tools. The next time, the run may be silent, as a lot of the information is cached in ~/.tex.cache """ import numpy as np import matplotlib.pyplot as plt # Example data t = np.arange(0.0, 1.0 + 0.01, 0.01) s = np.cos(4 * np.pi * t) + 2 plt.rc('text', usetex=True) plt.rc('font', family='serif') plt.plot(t, s) plt.xlabel(r'\textbf{time} (s)') plt.ylabel(r'\textit{voltage} (mV)',fontsize=16) plt.title(r"\TeX\ is Number " r"$\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!", fontsize=16, color='gray') # Make room for the ridiculously large title. plt.subplots_adjust(top=0.8) plt.savefig('tex_demo') plt.show()
------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users