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.
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 *************************************************************
visad
archives: