From: Nicolas P. <nic...@gm...> - 2009-05-28 16:04:36
|
Hi, is there any way to use Computer Modern in any text in matplotlib ? In http://matplotlib.sourceforge.net/users/customizing.html, I read the following : #font.serif : Bitstream Vera Serif, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif #font.sans-serif : Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif #font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand, cursive #font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western, fantasy #font.monospace : Bitstream Vera Sans Mono, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace So, Computer Modern is not listed there. However, Computer Modern is used in mathtext, so I suppose there is a way to use it also in plain text, but I can't figure it... I tried : /mpl.rc('font', family = 'serif', serif = 'computer modern roman')/ but it did not work. Thanks a lot, Nicolas P. |