Re: [Matplotlib-users] Errorbars not drawn correctly in logarithmic scales

2012-03-29 Thread arsbbr
I never got the trick with set_yscale="clip" to work for my plots (MPL 1.1.0). So I'm passing my error values to this little function in order to correct the yerr_neg: def filt_neg_err(y, yerr, set_ymin=1e-6): ymin = y - yerr filt = ymin < 0 yerr_pos = yerr.copy() yerr_neg = yerr.

Re: [Matplotlib-users] Errorbars not drawn correctly in logarithmic scales

2012-03-21 Thread Wolfgang Draxinger
On Mon, 12 Mar 2012 15:51:15 -0500 Benjamin Root wrote: > Ah, finally figured it out. The issue is that your y-value for that > error bar is 9.114, but you want to plot error bars that are > +/-10.31. That line gets thrown out by matplotlib because you can't > plot at negative values for log sc

Re: [Matplotlib-users] Errorbars not drawn correctly in logarithmic scales

2012-03-12 Thread Benjamin Root
On Fri, Mar 9, 2012 at 1:14 PM, Wolfgang Draxinger < wdraxinger.maill...@draxit.de> wrote: > On Fri, 9 Mar 2012 11:19:15 -0600 > Benjamin Root wrote: > > > Can I have the data you used to produce these errorbars so I can test > > this bug? > > Here's the data > > # Fluence -sigma Signal.

Re: [Matplotlib-users] Errorbars not drawn correctly in logarithmic scales

2012-03-09 Thread Wolfgang Draxinger
On Fri, 9 Mar 2012 11:19:15 -0600 Benjamin Root wrote: > Can I have the data you used to produce these errorbars so I can test > this bug? Here's the data # Fluence -sigma Signal... -sigma area 1127 48.32 9.114 10.31 0.1318 1.127e+04 482.9 35

Re: [Matplotlib-users] Errorbars not drawn correctly in logarithmic scales

2012-03-09 Thread Benjamin Root
On Fri, Mar 9, 2012 at 3:29 AM, Wolfgang Draxinger < wdraxinger.maill...@draxit.de> wrote: > On Thu, 8 Mar 2012 19:47:05 -0600 > Benjamin Root wrote: > > > Which version of matplotlib are you using? Also, are you setting the > > log scale before (preferred) or after (won't work) the call to hist

Re: [Matplotlib-users] Errorbars not drawn correctly in logarithmic scales

2012-03-09 Thread Wolfgang Draxinger
On Thu, 8 Mar 2012 19:47:05 -0600 Benjamin Root wrote: > Which version of matplotlib are you using? Also, are you setting the > log scale before (preferred) or after (won't work) the call to hist()? Version is matplotlib-1.1.0, installed through standard Gentoo ebuild. And the scale parameters

Re: [Matplotlib-users] Errorbars not drawn correctly in logarithmic scales

2012-03-08 Thread Benjamin Root
On Thursday, March 8, 2012, Benjamin Root wrote: > > > On Thursday, March 8, 2012, Wolfgang Draxinger < wdraxinger.maill...@draxit.de> wrote: >> Hi, >> >> I've a problem with some errorbars not drawn correctly in (double) >> logarithmic plots. See this PDF for an example: >> >> http://dl.wolfgang-

Re: [Matplotlib-users] Errorbars not drawn correctly in logarithmic scales

2012-03-08 Thread Benjamin Root
On Thursday, March 8, 2012, Wolfgang Draxinger < wdraxinger.maill...@draxit.de> wrote: > Hi, > > I've a problem with some errorbars not drawn correctly in (double) > logarithmic plots. See this PDF for an example: > > http://dl.wolfgang-draxinger.net/C6_77MeV_raddamage.pdf > > The vertical errorbar

[Matplotlib-users] Errorbars not drawn correctly in logarithmic scales

2012-03-08 Thread Wolfgang Draxinger
Hi, I've a problem with some errorbars not drawn correctly in (double) logarithmic plots. See this PDF for an example: http://dl.wolfgang-draxinger.net/C6_77MeV_raddamage.pdf The vertical errorbar for the datapoint at x=1e3 are not drawn. Similar also happens for some horizontal errorbars. Using