From: Andre Wobst <wobsta@us...>  20060526 15:37:52

Hi, On 26.05.06, Serial wrote: > I don't know if I'm doing something wrong or if there is a bug > somewhere... I have a graph with y values in ]0;1[, and associated > standard deviations in ]0.01;0.3[ . What I want to do, of course, is > to display these values with some error bars representing the > standard deviations. > > I perfectly succeed generating a valid .pdf file when both axis are > linears, but obtain various error messages when trying to open this > file with different softwares when both axis are logarithmic ("There > was an error processing a page. Too few operands", "An unrecognized > token 'nan' was found"). > > Am I doing something wrong !? I'm not sure. It might be that you're trying to access a position on a logarithmic axis for a negative value. Depending on the system this might result in NaN's in the output. (The behaviour of log(1) is maschine dependend. On my PowerBook a math.log(1) returns "nan" while it creates a math domain error on my IA32 Debian box ...) Can you provide us with an example code, where this problem occurs? Alternatively you can insert a test in the convert method of pyx.graph.axis.axis.logarithmic and test for negative values ... André  by _ _ _ Dr. André Wobst / \ \ / ) wobsta@..., http://www.wobsta.de/ / _ \ \/\/ / PyX  High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ 