Using JPythonMethod's histogram function

May, 2001


The hist() function in JPythonMethods provides the mechanism to create a Histogram VisAD Data object. This consists of bins of counts of values. You may use this method directly, or for simple "bar graph" type displays, you can use the graph.histogram() function.

Here are the signatures for the hist() funciton:

Here's an example:
a = load("../data/mcidas/AREA0008")
h = hist(a, [0,2], [20,40])
Produces this display:

Picture of 2-D histogram

which maps the count of brightness values of channel 0 into 20 equally-spaced bins, the count of brightness for channel 2 into 40 bins.

Back to the home page