I have an issue regarding matplotlib showing my text (pictures below).
prop = fm.FontProperties(fname=os.path.join(floc,fn+'.ttf'))
txt='数一数二'
fig=plt.figure('poster', figsize=size, dpi=dpi)
a = fig.add_subplot(111)
a.cla()
plt.setp(a.get_xticklabels(), visible=False)
plt.setp(a.get_xticklines(), visible=False)
plt.setp(a.get_yticklabels(), visible=False)
plt.setp(a.get_yticklines(), visible=False)
plt.subplots_adjust(left=margin/xsize, right=1.0 - margin/xsize, top=1.0 - margin/ysize, bottom=margin/ysize)
plt.text(xd,yd, '\n'.join(txt),size=10, color='white' if fc!='b' else 'black',va='top', fontproperties = prop,clip_on=False)
as this is an animation. But even in still image If I were to show the text it gets cropped. (which I think bases on the width and height of the last script.. Any Ideas how to change this? Thank you