Re: plot an histogram

In addition to Bill's suggestion, check out the script in
visad.python which has a histogram function in there that is more
along the lines of what you want, I think.  This will create boxes
instead of lines connecting points like does.  You can
see an example at:

While this is written in Jython, you could adapt it to Java if you
didn't want to use the VisAD Python interface.


"From: Bill Hibbard " wrote:
> Hi Ricardo,
> > I need to plot an histogram... When I make a normal plot I get some
> > spikes I don't like...  The idea is to have some sort of boxes
> > representing my data instead of just lines crossing points.
> >
> > I can do this by adding more points to my flatField but before to proced
> > I would like to know If somebody have thought and solved this problem
> > before, or if visad includes this kind of plot.
> Check out visad/python/ for a very simple VisAD
> Python program for plotting a histogram (in this case, a 2-D
> histogram). This Python program uses the makeHistogram()
> method of visad/math/ It makes histograms
> pretty easy.
> Cheers,
> Bill

Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307

  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: