Another possible way to do this for your example is to change the verb
getaxis1 in the script j64-803/addons/graphics/plot/jzplot.ijs so that the
first line below is replaced with the second line below (on about the 42nd
line). This fix only applies to 'type bar' as far as I know.


      Label=. ": each >:i.steps
      Label=. <@":"0{.>{."1 Data

​By the way, I was able to change only the verb getaxis1 by editing only ​a
verb named getaxis1_jzplot_ .

On Sat, Feb 7, 2015 at 3:25 AM, Ryan <rec...@bwh.harvard.edu> wrote:

> Why does the x-axis always start at 1 in bar plots, even
> when x data is given?  eg.
>
>     'bar' plot (];*:) i.5
>
> generates a bar plot where x=1..5, and not x=0..4
> Same for 'hist', 'sbar', etc.
>
> thanks for any help,
> Ryan
>
>
> --
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to