Re: [Matplotlib-users] font name . . .

2008-09-16 Thread Michael Droettboom
You can just do ax.legend(prop=fm.FontProperties('Tahoma')) Cheers, Mike sa6113 wrote: > 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 ma

[Matplotlib-users] font name . . .

2008-09-16 Thread sa6113
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],