Re: Display a series of 2D curves in a 3D display

Bill,

Ok, scratch my previous message.  I simply copied the relevant block of code 
from Test47.java into my class and got each data point in the mesh to be 
displayed with the symbol "1.2" at the data point.  I see that there is also a 
cross and cube one can display at the data point; which is what I'm trying to 
figure out now.

for example, what do these lines of code (from Test47.java) do?

ScalarMap shape_map = (ScalarMap )display.getMapVector().lastElement();
RealType count = (RealType )shape_map.getScalar();
float[][] counts = new float[][] {{0.0f, 1.0f, 2.0f, 3.0f}};
Gridded1DSet count_set = new Gridded1DSet(count, counts, counts[0].length);

It's unclear to me.

Sincerely,
Mark Thompson



> Bill, Thanks for the pointers.
> 
> I've changed my code to simply try to plot a mesh of non-connected points 
> (using a Linear2DSet) with error bars on each point.  I've looked at 
> test47.java and the VisAD dev guide and am having a little difficulty 
> understanding all the necessary incantations for doing the Shape part that 
> handles the error bars.  I've looked through the java docs as well and am 
> beginning to get a feel for what is going on....
> 
> How do I set the actual shape of the error bar? i.e. what symbol is used to 
> represent it?
> 
> Mark
> 
> 
> > Hi Mark,
> > 
> > Put your data in a FlatField with MathType:
> > 
> >   ((x, y) -> (z, errorlow, errorhi))
> > 
> > Then make ScalarMaps: x-> XAxis, y -> YAxis, z -> ZAxis,
> > errorlow -> Shape, errorhi -> Shape. Pass VisADLineArray[]
> > arrays to the setShapes() methods of the two ShapeControls
> > for appropriate top and bottom error bar half-shapes,
> > along with appropriate Linear1DSets to their setShapeSet()
> > methods (assume errorlow and errorhi values are 0.0 for no
> > errors, that is relative to z values). Note Test47.java in
> > visad/examples will give you an example of using Shape.
> > 
> > Good luck,
> > Bill
> > ----------------------------------------------------------
> > Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
> > hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
> > http://www.ssec.wisc.edu/~billh/vis.html
> > 
> > 
> > On Tue, 16 Apr 2002, Mark Thompson wrote:
> > 
> > >
> > > I'm new to VisAD, but have worked through the tutorials.
> > >
> > > I'd like to do the following and would appreciate tips or pointers from
> > > users:
> > >
> > > I have a series of 2D curves that I'd like to plot next to eachother along
> > > one of the axes of a 3D plot.  I would like the data points to not be
> > > connected.  I would like each data point to have an error bar displayed
> > > along the z-axis.
> > >
> > > In essence, I'm trying to plot a 3D mesh of evenly-spaced points that are
> > > not connected where each point has an error bar.
> > >
> > > Its not clear to me if I should use a Linear2DSet or something else.
> > >
> > > Apologies if this sounds like too much hand-holding.  Even just a few
> > > pointers on correct domain tuples, etc. would be a useful start to get me
> > > moving along the right direction.
> > >
> > > Cheers,
> > > Mark
> > >
> > > ================================
> > > Mark Thompson, Ph.D.
> > > Planaria Software
> > > Seattle, WA.
> > > http://www.arguslab.com
> > > ================================
> > >
> > >
> > 
> > 
> 
> 
> ======================================
> Mark Thompson, Ph.D.
> Planaria Software
> Seattle, WA
> 
> http://www.arguslab.com
> ======================================
> 
> 
> 


======================================
Mark Thompson, Ph.D.
Planaria Software
Seattle, WA

http://www.arguslab.com
======================================