Hi Thomas,

I believe what you are looking for is the option xlabel, e.g.

vals=: >:?~5
'type bar; xlabel A B C D E' plot vals

or:

pd 'reset'
pd 'type bar'
pd vals
pd 'xlabel A B C D E F'
pd 'show'

The labels can also be double quoted if they contain spaces, see
https://code.jsoftware.com/wiki/Plot/Options

Best regards,

Jan-Pieter

On Sun, Apr 4, 2021, 23:27 Thomas Bulka <[email protected]> wrote:

> Hello everyone,
>
> alas, I have to badger the forum once more with a (most likely) rather
> simple question.
>
> After doing some analysis I got a nice vector with results, e.g.:
>
> vals =: >: 5?5
>
> Now I want to create a barplot for visualization.
>
> 'bar' plot vals
>
> gives a nice plot, which is a good first step. However, I want to give
> an indication, what the plotted values in vals are supposed to mean. My
> naive assumption was, that it should be possible, to provide something
> like a boxed array of length #vals with some strings as argument to
> plot in order to create some kind of legend.
>
> Probably it works in a completely different way, but I'd really
> appreciate any hint or link to the correct documentation on how to do
> such thing.
>
> Thank you very much in advance and kind regards,
>
> Thomas
> ----------------------------------------------------------------------
> 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