From: Stan W. <sta...@nr...> - 2010-10-20 18:32:08
|
> From: Thøger Emil Juul Thorsen [mailto:th...@fy...] > Sent: Monday, October 18, 2010 14:04 > > I'm using the excellent font Linux Libertine for writing my thesis, in > which I do my plotting in matplotlib. I would really love to > be ablu to > have consistent fonts in both text and graphs - is this > possible? I know > it can be loaded by \usepackage{libertine}. For ordinary text objects, one way is to set the font.family rcParam to the font name. You could do this either in a matplotlibrc file in an appropriate location or in your code dynamically [1]. If you'll be using mathtext, also see the "Fonts" section and "Custom fonts" subsection at [2]; for LaTeX, [3]. [1] http://matplotlib.sourceforge.net/users/customizing.html [2] http://matplotlib.sourceforge.net/users/mathtext.html#fonts [3] http://matplotlib.sourceforge.net/users/usetex.html |