[Jprogramming] Bar plot - x axis
Brian Schott
schott.brian at gmail.com
Mon Feb 9 13:53:29 UTC 2015
Devon,
The line of code in getaxis1 produces a list of *formatted* digits. In your
case some of the digits are built of characters of length 1 and some are of
length 2. Could that be the problem, and could the format be adjusted to
fix that? I cannot find the plot command in your example to investigate
myself.
On Sun, Feb 8, 2015 at 3:45 PM, Devon McCormick <devonmcc at 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.brian at 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
> >
>
--
(B=)
More information about the Programming
mailing list