No luck. Still have to debug it on my own... On Sun, Feb 8, 2015 at 3:45 PM, Devon McCormick <devon...@gmail.com> wrote:
> I'll see if this helps a long-standing problem of "bar-creep" that I've > had with histograms for quite some time - see > http://www.jsoftware.com/jwiki/NYCJUG/2013-07-09?highlight=%287-27%29#Quickly_Building_a_Simple_Simulation > for an example. The bars should line up with integral intervals but do so > only in the center of the chart. > > On Sun, Feb 8, 2015 at 11:10 AM, Brian Schott <schott.br...@gmail.com> > wrote: > >> 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 >> > > > > -- > Devon McCormick, CFA > > -- Devon McCormick, CFA ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm