Brian's histogram reference shows excellent extensions to the 'stats/base' 
histogram function which I have often used.

A wide range of plot illustrations are available in 901  at   Help - Studio - 
Showcase - Plot

They illustrate the very good capabilities of the present plot package.

The present 'bar' plot type would be even more useful if it accepted an x 
argument and
Permitted text bar labels but it is not an important extension.   


-----Original Message-----
From: Programming <programming-boun...@forums.jsoftware.com> On Behalf Of Brian 
Schott
Sent: Saturday, April 4, 2020 2:32 AM
To: Programming forum <programm...@jsoftware.com>
Subject: Re: [Jprogramming] 2D histograms?

Ruda,

I have poked around to find examples of plots.
I was not able to find the plot package from j602 in j807, but perhaps it is 
available and I don't know how to find it.
Anyhow, the plot package in j807 provided the following example named "DBAR" 
and I was able to run it successfully in both jqt and jconsole.
My reason for showing it is that it suggest a way to trick out Bar type plots.
If you or others would like, I can supply the 'plexam.ijs' script from j602 
which contains all these  examples as a .txt attachment to another email.

pd'reset'
pd 'type bar'
pd 'axes 1 0'
pd 'xlabel ',":2001+i.6
pd 'title Bar Chart'
pd 0.6 0.8 1* _0.5+?.3#,:3 3 4 7 7 4
pd'show'




On Wed, Apr 1, 2020 at 8:41 AM Brian Schott <schott.br...@gmail.com> wrote:

> Bo's 'Hist' is new to me. I substituted 'Bar' for 'Hist' and got the 
> same result, though.
> An alternative that could be adapted, perhaps, is at the following link.
> It's strength, if there is one, is to plot histograms with varying x 
> buckets, but it would have to be adapted to fill in the buckets with 
> colors.
>
> https://code.jsoftware.com/wiki/User:Brian_Schott/Histogram
>
> --
> (B=)
>


--
(B=) <-----my sig
Brian Schott
----------------------------------------------------------------------
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