I am new to matplotlib and trying to plot a 2D/3D chart with non-ASCII texts in it, I am able to use show()
to plot on screen:
plt.text(X, Y, str(text[i].decode('utf-8')) )
plt.show()
However when I try to save the figure to a file with
savefig()
, all texts become little squares []
I am sure it is a font related problem but I can't see to figure out how to fix this.
I am on a Mac OSX 10.10.5, if that matters.