Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: Question about gridline

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


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


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690