display points using log scale

Celine Gestas celine.gestas at gmail.com
Mon Mar 26 11:38:50 MDT 2007


Thank you for your answer but there is no change : points are displayed but
not in the log scale, it keeps the default scale. What I changed is :

                        index = RealType.getRealType("index",
CommonUnit.promiscuous);
                        indexLog = RealType.getRealType("indexLog",
CommonUnit.promiscuous);                            // new RealType
                        referenceIndex = new RealTupleType(index);
                        LogCoordinateSystem logCSindex = new
LogCoordinateSystem(referenceIndex, base);
                        rangeIndex = new RealTupleType(indexLog, logCSindex,
null);                                              // use the new RealType
                        index_set = new Integer1DSet(rangeIndex,
x_vals[0].length, logCSindex, null, null);

2007/3/26, Bill Hibbard <hiding at japan.com>:
>
>  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
>
>
> --
>
>  <http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=en-mail_a_01>
>


More information about the visad mailing list