Re: [Matplotlib-users] Possible bug with saving eps figure

2013-04-26 Thread john collins
Filipe Pires Alvarenga Fernandes ocefpaf@... writes: Yep, that's what I was expecting. It should fail with both show() and the save as 'png' format. However, it only fails when trying to save an 'eps' -Filipe On Mon, May 7, 2012 at 1:12 PM, Benjamin Root ben.root at ou.edu wrote:

[Matplotlib-users] Possible bug with saving eps figure

2012-05-07 Thread Filipe Pires Alvarenga Fernandes
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

Re: [Matplotlib-users] Possible bug with saving eps figure

2012-05-07 Thread Michael Droettboom
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

Re: [Matplotlib-users] Possible bug with saving eps figure

2012-05-07 Thread Benjamin Root
On Mon, May 7, 2012 at 12:55 PM, Michael Droettboom md...@stsci.edu wrote: 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 I think the bigger question is why does it _work_

Re: [Matplotlib-users] Possible bug with saving eps figure

2012-05-07 Thread Filipe Pires Alvarenga Fernandes
Yep, that's what I was expecting. It should fail with both show() and the save as 'png' format. However, it only fails when trying to save an 'eps' -Filipe On Mon, May 7, 2012 at 1:12 PM, Benjamin Root ben.r...@ou.edu wrote: On Mon, May 7, 2012 at 12:55 PM, Michael Droettboom md...@stsci.edu