On Tuesday 07 August 2007 07:37:04 am Johan Ekh wrote: > Hi all, > I'm new to Python in general and Matplotlib in particular. > I'm trying to create publication quality plots for inclusion > in LaTeX papers and presentations and have some problems > to get the fonts right. > > My matplotlibrc contains the following lines > > font.family : serif > font.serif : Times, Palatino, New Century Schoolbook, Bookman, > Computer Modern Roman > font.sans-serif : Helvetica, Avant Garde, Computer Modern Sans serif > font.cursive : Zapf Chancery > font.monospace : Courier, Computer Modern Typewriter > > and my Python script contains the following lines > > params = {'backend': 'ps', > 'axes.labelsize': 12, > 'text.fontsize': 12, > 'xtick.labelsize': 10, > 'ytick.labelsize': 10, > 'text.usetex': True, > 'figure.figsize': fig_size} > rcParams.update(params) > > I run what I believe is a standard openSUSE 10.2 installation of tetex and > python, including matplotlib. > > Still, fonts in my matplotlib plot are different from the ones used in my > LaTeX document. Also, strangely > psfrag does not seem to work? Nothing ever gets replaced in my plot! > > Can someone please help me out, what am I doing wrong?
Please make sure that the external dependencies are installed and properly configured, see http://www.scipy.org/Cookbook/Matplotlib/UsingTex. If that doesn't help, try setting your verbose.level to "debug", write as simple a script as possible that reproduces the problem, and post again, along with the output and perhaps the figure. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users