|
From: David <ld...@gm...> - 2010-03-16 19:09:28
|
Hello everybody,
I have a final problem with my graph. As a last step I produce an *.eps
file that I use in conjunction with LaTeX.
Here is the last part of my code:
# plt.title('Title')
xlab = plt.xlabel(u'输入 1')
#xlab.set_position((0.2, 0.1))
ylab = plt.ylabel(u'输入 2')
plt.grid(True)
plt.subplots_adjust(bottom=0.2)
plt.show()
plt.savefig('dea.eps')
plt.show() produces the correct output,
but
plt.savefig('dea.eps') produces an error (the error message is attached).
The error is clearly linked to the Chinese, as it runs through if I take
the Chinese out of the code.
Also, plt.savefig('dea.png') works fine.
Could anyone indicate where I would have to look for the mistake? The
matplotlibrc should be fine, but I am not sure.
Your help would be greatly appreciated!
Many thanks,
David
|