display points using log scale

Bill Hibbard hiding at japan.com
Mon Mar 26 08:49:01 MDT 2007


 Hi Celine,

  If someone has an idea ...

  RealTupleType rangeIndex = null;

  // create the index
  if (log.equals("logX") || log.equals("logY") ||log.equals("loglog"))
  {
  index = RealType.getRealType("index", CommonUnit.promiscuous);
  RealTupleType referenceIndex = new RealTupleType(index);
  LogCoordinateSystem logCSindex = new
  LogCoordinateSystem(referenceIndex, base);
  rangeIndex = new RealTupleType(index, logCSindex, null);
  index_set = new Integer1DSet(rangeIndex, x_vals[0].length,
  logCSindex, null, null);
  }

I think the problem is that the RealTupleTypes referenceIndex and
rangeIndex are both
defined as (index), that is they are both a RealTupleType of the same
single RealType.
This may also explain the very mysterious Exception you reported in your
other recent
message to the list. Try using different RealTypes in the constructors
for referenceIndex
and rangeIndex.

Good luck,
Bill
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
Url: http://mailman.unidata.ucar.edu/mailing_lists/archives/visad/attachments/20070326/33765b8b/attachment.ksh 


More information about the visad mailing list