Re: [Matplotlib-users] fill_between issue

2014-12-09 Thread Ryan Nelson
Ah... That was not clear. I just retried my first example (with show->savefig) for all of the backends that I have available: Qt4Agg, TkAgg, PS, PDF, pgf, Cairo, GTK3Cairo, GTK3Agg. All of the *Agg backends show the same problem: the other backends work as expected. I will file a bug report now. R

Re: [Matplotlib-users] fill_between issue

2014-12-09 Thread Benjamin Root
Interesting. Just to double-check, when you say that it only happens for the "agg" backend, are you saying that backends like "tkagg" are unaffected? I think at this point there is enough information here to file a bug report. Ben Root On Mon, Dec 8, 2014 at 6:14 PM, Ryan Nelson wrote: > Final

Re: [Matplotlib-users] fill_between issue

2014-12-08 Thread Ryan Nelson
Final update. I've done some more searching, and found a couple more things. It seems that this problem occurs with the backend set to "Agg" (`matplotlib.use("agg")), so it isn't related to the interactive backends. In addition, the problem does not occur with a random Polygon object added to an a

Re: [Matplotlib-users] fill_between issue

2014-12-08 Thread Ryan Nelson
Update 2. I made a new Anaconda Python 2.7 environment and cycled through some different MPL versions. Everything works as I would expect in 1.4.0; however, moving to 1.4.1 is when the problem occurs. I see this same problem if I do the OO commands instead of pyplot. import numpy as np import mat

Re: [Matplotlib-users] fill_between issue

2014-12-08 Thread Ryan Nelson
Update. This is a problem also in Anaconda Py3.4 with MPL 1.4.2, but it works without a problem on MPL 1.4.0. Ryan On Mon, Dec 8, 2014 at 12:15 PM, Ryan Nelson wrote: > Hello all, > > I'm having an issue with fill_between. It seems that setting the keyword > `linewidth=0` removes the entire pa

Re: [Matplotlib-users] fill_between with drawstyle steps?

2010-11-12 Thread Stan West
> From: Thøger Emil Juul Thorsen [mailto:thoe...@fys.ku.dk] > Sent: Tuesday, November 09, 2010 11:10 > > I'm trying to do a fill-between part of a spectrum and its continuum > value. I would strongly prefer the drawstyle to be steps, since each > data point represents a bin (or pixel, to be preci

Re: [Matplotlib-users] fill_between, legends, and "label" parameter

2009-10-23 Thread Jae-Joon Lee
I think you misunderstood what I meant by proxy artist (I'm not sure if this is a right choice of the word, as a matter of fact). Again, PolyCollection instance that is returned by fill_between is not supported by legend. Therefore, you have to use other kind of artist (which I call proxy artist)

Re: [Matplotlib-users] fill_between, legends, and "label" parameter

2009-10-22 Thread Mike Anderson
> If you want to have a legend for PolyCollection, you may use a proxy > artist. > > http://matplotlib.sourceforge.net/users/legend_guide.html#using-proxy-artist > Thanks for the link! Although, it seems that legend does not support PolyCollection at all: "Remember that some pyplot comman

Re: [Matplotlib-users] fill_between, legends, and "label" parameter

2009-10-22 Thread Jae-Joon Lee
> Why is that? "fill" creates Patches (http://matplotlib.sourceforge.net/api/artist_api.html?highlight=patch#matplotlib.patches.Patch) but fill_between creates PolyCollection (http://matplotlib.sourceforge.net/api/collections_api.html?highlight=polycollection#matplotlib.collections.PolyCollection)

Re: [Matplotlib-users] fill_between

2009-04-30 Thread John Hunter
On Thu, Apr 30, 2009 at 4:14 PM, T J wrote: > Fill between is for filling between two y-values over a range of > x-values. Is there anything which fills between to x-values over a > range of y-values? Nothing with the ease of use of fill_between, but you can always write your own PolyCollecti

Re: [Matplotlib-users] fill_between and masked array

2009-04-30 Thread Andres Luhamaa
John, that's exactly what I wanted, thanks. Andres John Hunter wrote: > > > On Wed, Apr 29, 2009 at 10:54 AM, John Hunter > wrote: > > > > fill_between does not currently support masked arrays, but I think > we could easily extend it to support the mask using th

Re: [Matplotlib-users] fill_between and masked array

2009-04-29 Thread Eric Firing
John Hunter wrote: > > > On Wed, Apr 29, 2009 at 11:03 AM, John Hunter > wrote: > > > ...but I'd like more feedback from the author or users of > fill_between > before committing that change. (That, and Eric Firing can > probably find

Re: [Matplotlib-users] fill_between and masked array

2009-04-29 Thread John Hunter
On Wed, Apr 29, 2009 at 11:03 AM, John Hunter wrote: > >> ...but I'd like more feedback from the author or users of fill_between >> before committing that change. (That, and Eric Firing can probably find >> a much more efficient way to do the masked array manipulation... ;) > > > I'm working on

Re: [Matplotlib-users] fill_between and masked array

2009-04-29 Thread John Hunter
On Wed, Apr 29, 2009 at 10:56 AM, Michael Droettboom wrote: > I don't believe fill_between directly supports missing values -- but it > does have the where parameter for this purpose. > > We could also be smarter about how "where" is generated when none is > provided: > >if where is None:

Re: [Matplotlib-users] fill_between and masked array

2009-04-29 Thread Michael Droettboom
I don't believe fill_between directly supports missing values -- but it does have the where parameter for this purpose. We could also be smarter about how "where" is generated when none is provided: if where is None: where = (~np.ma.getmaskarray(x) & ~np.ma.getmaskarray(y1)

Re: [Matplotlib-users] fill_between and masked array

2009-04-29 Thread John Hunter
On Wed, Apr 29, 2009 at 6:40 AM, Andres Luhamaa wrote: > Hello, > I try to do fill_between two arrays, that have missing value (masked > arrays). Following code shows behaviour that seems not correct. Images what > I expect the result to be (by omitting the missing value) and what I get by > plott

Re: [Matplotlib-users] fill_between and masked array

2009-04-29 Thread John Hunter
On Wed, Apr 29, 2009 at 10:54 AM, John Hunter wrote: > > > fill_between does not currently support masked arrays, but I think we could > easily extend it to support the mask using the existing support for the > "where" kwarg. For now, does this behave like you expect? > > valid = ~(edatmax.mas