python - writing greek letters with subscripts with matplotlib -
i have use greek letter subscript axes label, thought use latex symbols. using following code:
from matplotlib import rc rc('font',**{'family':'sans-serif','sans-serif':['helvetica']}) rc('text', usetex=true)
and in plot have, example:
ylabel(r'$\boldsymbol{\delta_y}$')
it works fine, slow (it take 5 sec. make plot), guess bacause python has call external package.
any chances can make faster?
i using python 2.6
try using rc('text', usetex=false)
.
with matplotlib use internal mathtext
instead of os's latex installation render math symbols. see docs.
Comments
Post a Comment