i want use non-standard font labels on axes of matplotlib graph. cannot assume users have installed font, providing ttf file.
i have working doing following:
fname = '/bla/bla/myfont.ttf' ticks_font = matplotlib.font_manager.fontproperties(fname = fontpath, style='normal', size=12, weight='normal', stretch='normal') label in ax.get_xticklabels() : label.set_fontproperties(ticks_font) however, have many graphs different styles, want move layout stylesheets. i've tried do:
font.serif : '/bla/bla/myfont.ttf' font.family :'serif' but doesn't seem work.
Comments
Post a Comment