I'm trying to save a figure in the eps format using the following code:
plt.savefig("test.eps", format="eps")
but I get the error:
File "C:\Python27\lib\site-packages\matplotlib\backends\backend_ps.py", line 258, in set_linewidth
self._pswriter.write("%1.3f setlinewidth\n"%linewidth)
TypeError: float argument required, not str
How do I fix this? I have Matplotlib 1.3.1