Re: [matplotlib-devel] Bug (?) in fill_between

2010-10-20 Thread John Hunter
On Wed, Oct 20, 2010 at 8:43 AM, Giovanni Plantageneto
 wrote:
> Hi,
>
> I think I found a bug in the command fill_between().
> If I try to make a fill_between plot on an x-axis that spans both negative 
> and positive values (and only in that case), I have some funny results.
> I attach the code that gives the wrong result, the workaround I use, and 
> their output.


Can you post a complete free-standing example that replicates the problem?

--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Bug (?) in fill_between

2010-10-20 Thread Giovanni Plantageneto
I checked the data (I can't send it, sorry), and it seems that the problem is 
given by the presence of not-a-numbers in the array. In the workaraound 
version, the nan are at the end, and that solves the problem.
Shouldn't fill_between get rid of the nans?



- Start Original Message -
Sent: Wed, 20 Oct 2010 09:03:36 -0500
From: John Hunter 
To: g.plantagen...@runbox.com
Subject: Re: [matplotlib-devel] Bug (?) in fill_between

> On Wed, Oct 20, 2010 at 8:43 AM, Giovanni Plantageneto
>  wrote:
> > Hi,
> >
> > I think I found a bug in the command fill_between().
> > If I try to make a fill_between plot on an x-axis that spans both negative 
> > and positive values (and only in that case), I have some funny results.
> > I attach the code that gives the wrong result, the workaround I use, and 
> > their output.
> 
> 
> Can you post a complete free-standing example that replicates the problem?

- End Original Message -
--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] Figure legend position mismatch on screen and PDF

2010-10-20 Thread Gökhan Sever
Hello,

Please see the screenshot at
http://img225.imageshack.us/img225/1052/legendposition.png
Although the visible difference is minor, I get slightly shifted
legend positions on screen
 (and saving as png) and in pdf file. This required me to make manual
adjustments (change
axes vertical distance to position the legend) to look good on both
screen and in the pdf.

You can also see my ultra-fine precision legend positioning on these lines:
f06leg = f06.legend((l1, l2), ("Air", "Dew Point"), loc='lower
center', ncol=2, columnspacing=1.0,\
 handletextpad=0.3, handlelength=2.3,
bbox_to_anchor = (0.243, 0.785))

Using qt4agg and xpdf as pdfdistiller on rev8757.

-- 
Gökhan

--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel