• Lab 4 (Solution):
    • You should have done this:
      1. Use PLOT to plot world.shp in the background. Give the plot an ID of MYPLOT.
        nM> plot/bg/id=myplot world.shp
        <Plot should come up in separate window.>
        nM>
        
      2. Use REG to look at the registry entry for plot.
        nM> reg
          T: REG             = Table of 3 entries
          O:  SHELL          = nxm.sys.lib.Shell@c1cd1f
          T:  HANDLERS       = Table of 3 entries
          O:  MYPLOT         = P: PLOT,FILE=world.shp,/BG=,/ID=myplot
      3. Use RES to look at the registry table. Note how it is the same as what was shown with REG.
        nM> res reg
          T: REG             = Table of 3 entries
          O:  SHELL          = nxm.sys.lib.Shell@c1cd1f
          T:  HANDLERS       = Table of 3 entries
          O:  MYPLOT         = P: PLOT,FILE=world.shp,/BG=,/ID=myplot
      4. Use RES to look at the particular entry for the plot. Since REG is a table you can use the REG.<id> syntax.
        nM> res reg.myplot
          O: REG.MYPLOT      = P: PLOT,FILE=world.shp,/BG=,/ID=myplot
      5. Use QUERY to see what methods can be called on the plot.
        nM> query reg.myplot
        <Long list of methods.>
      6. Use QUERY to look at the documentation for the setView method that is callable in the plot.
        nM> query reg.myplot setView
        <The docs for the various setView methods.>
      7. Set the view to GEODETIC. Remember that when a class has a setFoo(..) method the value of it can be set using SET <object>.FOO <value>.
        nM> set reg.myplot.view GEODETIC
        <Plot should change to a 3D (Geodetic) view.>
        nM>