That's not a bug. linewidth is required to be a float, rather than a string. Python's typing is generally a little stricter than languages such as JavaScript.
Mike On 05/07/2012 12:14 PM, Filipe Pires Alvarenga Fernandes wrote: > Hi, this is not a big deal, but I think that there is a bug while > saving eps figures and passing the linewidth='2.5' as string instead > of float. The following reproduces the error I get here: > > plt.plot([1,2,3], 'k', linewidth='2.5') > plt.savefig('teste.png') # Saves OK > # The following fails with linewidth='2.5', but passes with linewidth=2.5 > # TypeError: float argument required, not str > plt.savefig('teste.eps') > plt.show() # show is OK for both cases. > > matplotlib.__version__ > Out[2]: '1.2.x' > > -Filipe > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users