Thank you very much Bill, but I'm confused jejeje. So I have to read
more, is there any other tutorials or documentation available? I have
read the Tutorial on visad home page but I'm quite lost. Is there any
repository with examples?
Another question is how can I modify the size of the graphic in an
Applet, I have tried setting the applet width and height, but the applet
occupies the correct area but the graphic is smaller, I have tried
setting display dimension but did not work. Any ideas? examples?
Thank you very much.
P.S. I'm still having the problems with ticks.
On Sat, 2003-02-08 at 12:50, Bill Hibbard wrote:
> Hi Carlos,
>
> > I have 4 different series, I have been able to graph the four series in
> > the same display with different colors. But I would like to add a simple
> > box with a legend indicating each color meaning. I don't know how to do
> > this.
>
> One way to make the box is as a RealTuple with MathType
> (x, y, s) and ScalarMaps x -> XAxis, y -> YAxis and
> s -> Shape. Create the box as a VisADLineArray that
> you pass to the setShapes() method of the ShapeControl
> you get from the getControl() method of your ScalarMap
> to Shape. See visad/examples/Test47.java for an example.
>
> For the text label, make a RealTuple with MathType
> (x, y, t) where t is a TextType, and a ScalarMap
> of its t to Text. See visad/examples/Test45.java for
> an example.
>
> > My Yaxis values range from -40 to 10, I would like to have the X axis at
> > 0 instead of -40.
>
> For this, you may need to turn the box off (call the
> setBoxOn(false) method of your DisplayRenderer), and draw
> an X axis as a Shape or as a Gridded2DSet with manifold
> dimension = 1 (i.e., a line).
>
> > Another question is what I should do to have values each 3 or 4 ticks, I
> > have tried with this:
> >
> > axisScale.setVisible(true);
> > axisScale.setTickBase((double)1);
> > axisScale.setMinorTickSpacing((double)5);
> > axisScale.setMajorTickSpacing((double)10);
> >
> > Ando did not work.
>
> Perhaps Don nows the answer to this.
>
> Good luck,
> Bill
--
Carlos del Castillo Peralta.
QoS Labs México.
ccastillo@xxxxxxxxxxx
Tel: +52 (55) 53402400 ext 2508