NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: plot an histogram

In addition to Bill's suggestion, check out the graph.py 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 hist_test.py does.  You can
see an example at:

http://www.ssec.wisc.edu/~tomw/visadtutor/graph.html#histogram

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

Don


"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/hist_test.py 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/Histogram.java. It makes histograms
> pretty easy.
> 
> Cheers,
> Bill

-- 
*************************************************************
Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
*************************************************************


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