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
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
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
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
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,
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
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',