Oleg Kobchenko wrote:
>> From: Alfonso Salazar <[EMAIL PROTECTED]>
>>  
>> I wish graph V in logarithmic scale but gives error.
>>  
>> V=:30 70 100 300 500 1000 2000 5000 22000 33000
>>  
>>    'ylog 1' plot V
>> |NaN error: getaxis1
>> |   Div=.zero(Int    -Min)%Max-Min
>>
>>    How I do it?
> 
> If you open Debugger and run this sentence, after the
> stop see the value of Min, it is __ neg infinity, which
> causes the NaN error.
> So you need to look up the code and/or place breakpoint
> earlier to see where and why Min becomes __ .

This bug is fixed in the latest scripts (version 028).

The code worked prior to J504. Then, log plots had y tics at even spaced
log values. In J504, this was changed to y tics at even spaced values,
and a bug introduced for some data values.

In fixing this, I find that neither method works well over the whole
range of possible values. Instead, where the maximum value is about 3
orders of magnitude more than the minimum value, then even spaced log
values looks better, and vice versa. Right now the code selects which
method based on the data, but I suppose there should be an option that
lets the user select the method.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to