I get the attached result. The \texttt{} is rendered differently by matplotlib and latex.
I am using the default latex fonts, and below is my preamble. rc('font', **{'family':'serif', 'serif':['Computer Modern Roman']}) params = {'backend': 'pdf', 'axes.labelsize': 12, 'text.fontsize': 12, 'legend.fontsize': 12, 'xtick.labelsize': 10, 'ytick.labelsize': 10, 'text.usetex': True, 'figure.figsize': fig_size, 'axes.unicode_minus': True} matplotlib.rcParams.update(params) What do I have to change to match the font?
<<attachment: MPL_latex_fontdiff.png>>
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users