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 =

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 ben.r...@ou.edu 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

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 ben.r...@ou.edu wrote: Can I have the data you used to produce these errorbars so I can test this bug? Here's the data # Fluence -sigma

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 ben.r...@ou.edu 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

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 ben.r...@ou.edu 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

[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.

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 for the

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

2012-03-08 Thread Benjamin Root
On Thursday, March 8, 2012, Benjamin Root ben.r...@ou.edu 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: