NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: Question about gridline

First, please do not send questions to just my email
address. Send questions to visad-list@xxxxxxxxxxxxx.


Your problem is simply that your spatial ScalarMaps
were all messed up, with both Y and Z mapped to X, and
X mapped to both Y and Z:

    display.addMap(new ScalarMap(RealType.YAxis, Display.XAxis));
    display.addMap(new ScalarMap(RealType.XAxis, Display.YAxis));
    display.addMap(new ScalarMap(RealType.ZAxis, Display.XAxis));
    display.addMap(new ScalarMap(RealType.XAxis, Display.ZAxis));

Change this to:

    display.addMap(new ScalarMap(RealType.YAxis, Display.YAxis));
    display.addMap(new ScalarMap(RealType.XAxis, Display.XAxis));
    display.addMap(new ScalarMap(RealType.ZAxis, Display.ZAxis));


Jing Zhang wrote:
> 
> Hi Bill,
> 
> We have question about drawing gridline. In the attachment, you can find 
> three java files. We draw gridline on X-Y plan in the first one. We
> draw gridline on X-Z plan in the second one. However, when we want to draw 
> gridline on X-Y and X-Z plan separately in the third one, the
> gridline merge into a slope gridline. This is not what we want.
> Could you please tell us how can we draw gridline separately.
> 
> Very appreciate and Happy New Year!
> 
> 3D Research Group (NC A&T)
> 
> ----------------------------------------------------------------------------------------------------------------------------------------------
> The new MSN 8 is here: Try it free* for 2 months
> 
>                    Name: Rivers1.java
>    Rivers1.java    Type: unspecified type (application/octet-stream)
>                Encoding: BASE64
> 
>                    Name: Rivers2.java
>    Rivers2.java    Type: unspecified type (application/octet-stream)
>                Encoding: BASE64
> 
>                    Name: Rivers3.java
>    Rivers3.java    Type: unspecified type (application/octet-stream)
>                Encoding: BASE64


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