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?

Best regards,
Johan
-------------------------------------------------------------------------
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

Reply via email to