AW: adding a single point that stands out to a surface plot

Hi Mike,

> how do I go about it without connecting that extra point in with the
> rest of the surface plot?

Try something like

double[] koords = new double[] { x, y, z };
RealTuple tuple = new RealTuple(RealTupleType.SpatialCartesian3DTuple,
koords);

Since a RealTuple is a Data you can link it to a DataReference and add
this reference to your display with appropriate ConstantMaps for setting
the pointsize and the color. Don't forget to add the ScalarMaps for the
RealTupleType.SpatialCartesian3DTuple to your display, e.g.
RealType.XAxis -> Display.XAxis etc.

Hope that helps, Mathias


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