|
From: sa6113 <s.p...@gm...> - 2008-09-16 04:45:44
|
I want to set font name to 'tahoma.ttf' this code work propely but is there
any way I don't want to use full path name in fname property.
import matplotlib.font_manager as fm
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot([1,2,3], label='test')
ax.legend(prop=fm.FontProperties(fname='c:/windows/fonts/tahoma.ttf'))
plt.show()
--
View this message in context: http://www.nabble.com/font-name-.-.-.-tp19510127p19510127.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
|