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
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
---
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
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
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
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
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
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
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
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
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
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
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
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
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
15 matches
Mail list logo