bill lam wrote:
In J601 l beta,
load 'plot'
'dot' plot (];5&p:) i.1000
'dot' plot (];5&p:) i.10000
'dot' plot (];5&p:) i.100000
the ending mark on axis for 1000,10000 are missing in the first two
case. Only
the third show both marks. It seem the last segment in both axis is wide
enough to accommodate a mark.
The problem is that in each case, the last power of 10 is not included
in the data, and would be shown if included, e.g. if the first example
were:
'dot' plot (];5&p:) i.1001
Plot has a simple algorithm to nudge the end labels if close to a power
of 10. I modified this to the following, which is more tolerant, and
which would display each of the above examples correctly:
nmm=. 10 ^ <. <: 10 ^. max - min
min=. nmm rounddown min
max=. nmm roundup max
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm