This is close to what it should be:

  a=.1 0 3 0 5
   pd 'type bar'
   pd a
   pd 'show'

On 27 May 2015 20:31, "Tikkanz" <[email protected]> wrote:

> I think you have to specify the labels for the x axis for bar graphs.
>
> pd 'type bar'
>
> a=: 1 3 5
>
> pd 'xlabel 1 3 5'
>
> pd a
>
> pd 'show'
>
> On Wed, May 27, 2015 at 10:40 AM, Björn Helgason <[email protected]> wrote:
>
> >   load'plot'
> >     pd'type bar'
> >    a=.1 3 5;1 3 5
> >    pd a
> >    pd'show'
> >
> > The missing values are ignored
> > On 18 Feb 2015 17:32, "Björn Helgason" <[email protected]> wrote:
> >
> > > I was working with pd in windows and the bar type does not mix well
> with
> > > line and dot.
> > >
> > > I was going to recreate the problem on the android.
> > >
> > >   a=.1 3 4 5 8 9 13 15 17 18 19 20;12$i.6
> > >    pd'reset'
> > >    pd a
> > >    pd'show'
> > >    pd'type dot'
> > >    pd'pensize 8'
> > >    pd a
> > >    pd'show'
> > >    pd'type line'
> > >    pd'pensize 1'
> > >    pd'show'
> > >    pd a
> > >    pd'show'
> > >    pd'type bar'
> > >    pd'show'
> > >    pd a
> > >    pd'show'
> > >    pd'type bar'
> > >    pd a
> > >    pd'show'
> > >
> > > On the android I get a reset after show so the problem is different
> from
> > > windows and jhs.
> > >
> > > Tried to not show between types
> > >
> > >    pd'type dot'
> > >    pd'pensize 8'
> > >    pd a
> > >    pd'type line'
> > >    pd'pensize 1'
> > >    pd a
> > >    pd'show'
> > >
> > > Ok this works fine and as intended.
> > >
> > >   pd'type dot'
> > >    pd'pensize 8'
> > >    pd a
> > >    pd'type line'
> > >    pd'pensize 1'
> > >    pd a
> > >    pd'type bar'
> > >    pd a
> > >    pd'show'
> > >
> > > Now I get the same problem as I get in windows and jhs.
> > >
> > > The type bar resets the markings on the x axis to 1 to 12 instead of
> the
> > > scale from the same data used in dot and line.
> > >
> > > The problem is basically that type bar ignores the missing values.
> > >
> > >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to