Hi,

On 26.05.06, Serial wrote:
> >Sounds like you failed to bound your values away from zero,
> >despite what you say above.
> >
> >A minimal example is helpful if you want a better answer.
> 
>       I did it in my first e-mail but had to remove it as SourceForge  
> rejected the attachments I sent :-\

It rejected a 300 KB PDF attachment ... which is obviously a Good
Thing (tm).

> Anyway, I think you're right ; I  
> have a value to plot, for example, with y = 0.0014 and a dy = 0.015.  
> In logarithmic scale the coordinates of the error bar's ticks will be  
> then, I guess y + dy and y - dy, i.e. something below 0 in the second  
> case. Is there a way to force the display of these ticks, at least  
> the ones that can be drawn ?

IIRC you could do that by raising an ArithmeticError in the convert
method of the log axis for zero and negative value. Or try and return
a None for that case. Both should work.

Note that you don't need to modify something in the PyX core to try
that. Something along the lines:

    class mylogaxis(graph.axis.log):

        def convert(self, x):
            if x <= 0: return None
            return graph.axis.log.convert(self, x)


    g = graphxy(..., y=mylogaxis(), ...)

should do.

I have not tried that (an running example would certainly lowered the
threshould to do so) but something along this lines should work. Note
this should result in a removal of the negative bounds of the
errorbars. (At least that's what I would expect to happen.) On a Intel
PC this might even be the behaviour without any modifications due to
the MathDomainError ... I'm not quite sure, but I guess so ...


André

-- 
by  _ _      _    Dr. André Wobst
   / \ \    / )   [EMAIL PROTECTED], http://www.wobsta.de/
  / _ \ \/\/ /    PyX - High quality PostScript and PDF figures
 (_/ \_)_/\_/     with Python & TeX: visit http://pyx.sourceforge.net/


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to