Re: [Matplotlib-users] error bars on a log log plot

2009-04-04 Thread Cohen-Tanugi Johann
indeed, I obviously just got entangled in my own debugging. I do manage to get it to do what I want now. sorry for the fuss, Johann Eric Firing wrote: > Cohen-Tanugi Johann wrote: >> ok, maybe it is in scale.py :) >> And what I see there confirms my initial fears : the log scale >> transform ap

Re: [Matplotlib-users] error bars on a log log plot

2009-04-04 Thread Eric Firing
Cohen-Tanugi Johann wrote: > indeed, I obviously just got entangled in my own debugging. I do manage > to get it to do what I want now. > > sorry for the fuss, > Johann No problem at all. I'm glad things are working for you. Eric ---

Re: [Matplotlib-users] error bars on a log log plot

2009-04-04 Thread Cohen-Tanugi Johann
hi Eric, then I misunderstood what the code does I thought it was transforming the data. In any case, my second figure in my previous post is wrong because the code should read: plt.errorbar(cE,corrE*fluxes, yerr=corrE*unc_fluxes) instead of plt.errorbar(cE,corrE*fluxes, yerr=unc_fluxes) and

Re: [Matplotlib-users] error bars on a log log plot

2009-04-04 Thread Eric Firing
Cohen-Tanugi Johann wrote: > ok, maybe it is in scale.py :) > And what I see there confirms my initial fears : the log scale transform > applies a log to the argument, which is incorrect for an error. So > first of all, another transform needs to be created so that erry is > transformed into

Re: [Matplotlib-users] error bars on a log log plot

2009-04-04 Thread Cohen-Tanugi Johann
ok, maybe it is in scale.py :) And what I see there confirms my initial fears : the log scale transform applies a log to the argument, which is incorrect for an error. So first of all, another transform needs to be created so that erry is transformed into erry/y/log(base) where base was 10 i

Re: [Matplotlib-users] error bars on a log log plot

2009-04-04 Thread Cohen-Tanugi Johann
hello, for the sake of concreteness, here is an example without any limit issues : the python script is attached and the 2 resulting figures as well. The dirst one is drawn using log directly in the arguments, and correctly transforming the y-errors into y-errors/y-values/log(10). In the seco

Re: [Matplotlib-users] error bars on a log log plot

2009-04-03 Thread Michael Droettboom
It looks like you're all heading down the right path. I'm happy to help (as the original author of the transforms code), but I'm going to be generally unavailable until Thursday or Friday of next week. Cheers, Mike Eric Firing wrote: > Cohen-Tanugi Johann wrote: >> I tried to look at the code

Re: [Matplotlib-users] error bars on a log log plot

2009-04-03 Thread Eric Firing
Cohen-Tanugi Johann wrote: > I tried to look at the code (axes.py I presume) in order to attempt a > patch, but it defeated me, I do not have the instructions to navigate > through this code :) > Where is the actual transform of the error bars occurring? I think it is in the draw (or recache) m

Re: [Matplotlib-users] error bars on a log log plot

2009-04-02 Thread Cohen-Tanugi Johann
hello. Anyone? I would very much love to see this fixed, and I am ready to help out, but I do not know how to browse through the code. Despite the fact that log(errors) should of course not be used, but rathter errors/values/log(10), Michael's point still remains : values- errors in log sca

Re: [Matplotlib-users] error bars on a log log plot

2009-04-01 Thread Cohen-Tanugi Johann
I tried to look at the code (axes.py I presume) in order to attempt a patch, but it defeated me, I do not have the instructions to navigate through this code :) Where is the actual transform of the error bars occurring? thanks, Johann Michael Droettboom wrote: > I have to say I don't really hav

Re: [Matplotlib-users] error bars on a log log plot

2009-03-31 Thread Cohen-Tanugi Johann
I did not look at the code, but I thought that the errors were automatically recomputed in log scale as delta_Y/Y/log(10) Johann Michael Droettboom wrote: > I have to say I don't really have a lot of experience with error bars > on log plots -- but the root cause here is that the lower bound of

Re: [Matplotlib-users] error bars on a log log plot

2009-03-31 Thread Michael Droettboom
I have to say I don't really have a lot of experience with error bars on log plots -- but the root cause here is that the lower bound of the error bar goes negative, and as we all know, the log of a negative number is undefined. If you can suggest where the lower bound should be drawn or provi

Re: [Matplotlib-users] error bars on a log log plot

2009-03-31 Thread Cohen-Tanugi Johann
yes exactly I should have provided a test case, thanks for following up! Johann Matthias Michler wrote: > Hello Johann, > > is the problem you are reporting the one I observe in the attached picture? > Namely some vertical and horizontal lines are missing when using > yscale="log". More prec

Re: [Matplotlib-users] error bars on a log log plot

2009-03-31 Thread Matthias Michler
Hello Johann, is the problem you are reporting the one I observe in the attached picture? Namely some vertical and horizontal lines are missing when using yscale="log". More precisely everything below y=1 seems to be missing. The picture was generated with the code below and matplotlib.__versio

[Matplotlib-users] error bars on a log log plot

2009-03-28 Thread Cohen-Tanugi Johann
Hello, what is the best way to get log log plots with error bars? I tried putting log10() everywhere but as I was afraid results look ugly thanks, johann -- ___ Matplotli