Re: [Matplotlib-users] setting figure font to helvetica

2009-06-29 Thread Jouni K . Seppänen
per freem writes: > rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) > rc('pdf', use14corefonts=True) > > then when i open the generated pdf in adobe illustrator i get the error: > "The font "Helvetica-Narrow" contains a bad /BBox." Helvetica-Narrow is not one of the pdf core font

Re: [Matplotlib-users] setting figure font to helvetica

2009-06-29 Thread per freem
more information on this. if i try to use pdf.use14corefonts, like was suggested by Jouni, as follows: from scipy import * import matplotlib matplotlib.use('PDF') from matplotlib import rc import matplotlib.pyplot as plt rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) rc('pdf', use

Re: [Matplotlib-users] setting figure font to helvetica

2009-06-29 Thread per freem
hi all, I am not sure if I have helvetica installed as a TTF -- how can i install it if i don't? i followed the debug suggestion and here are the results. when i set the font to arial, using: from matplotlib import rc rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) then the rele

Re: [Matplotlib-users] setting figure font to helvetica

2009-06-29 Thread Michael Droettboom
Are you certain you have Helvetica installed as a TrueType font? If you don't, the only way to get the Postscript Helvetica is to set "ps.useafm" to True. Cheers, Mike per freem wrote: > I just wanted to add: if i simply set the font to Arial, using > > rc('font',**{'family':'sans-serif','sans

Re: [Matplotlib-users] setting figure font to helvetica

2009-06-29 Thread Jouni K . Seppänen
per freem writes: > i am trying to use the Helvetica font on matplotlib. i am using mac os x (so > i definitely have helvetica installed) It might be in a format that matplotlib doesn't really handle. However, Helvetica is one of the "core fonts" in PDF so if you set pdf.use14corefonts to True,

Re: [Matplotlib-users] setting figure font to helvetica

2009-06-28 Thread per freem
I just wanted to add: if i simply set the font to Arial, using rc('font',**{'family':'sans-serif','sans-serif':['Arial']}) then it works. But the same call with Helvetica still defaults to that Bitstream/default font of matplotlib. any idea why this might be? could matplotlib be confusing helveti

[Matplotlib-users] setting figure font to helvetica

2009-06-28 Thread per freem
hi, i am trying to use the Helvetica font on matplotlib. i am using mac os x (so i definitely have helvetica installed) with version 0.98.5.2 of matplotlib. my code is: from scipy import * import matplotlib matplotlib.use('PDF') from matplotlib import rc import matplotlib.pyplot as plt rc('font',