Previous Next         Current Page: NeXtMidas Training / Macros - Part 2 (Graphics) / Lab 12 / Instructions
Start Here   
Background   
Common Midas Concepts   
Getting Started   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
   + Intro to Graphics   
   + GControls   
   + Lab 11   
   + Plotting and Listing   
   + Panel Setup   
   - Lab 12   
      - Instructions   
      - Solution   
   + Conclusion   
   + Lab 13   
Primitives   
Installing NeXtMidas   
Applets & WebStart   
Mapping (NeXtEarth)   
Remote Midas InterFace (RMIF)   
Using NetBeans   
X-Midas Interoperability   
Remoting an X-Midas App.   




  • Lab 12:
    • Create a new macro called mcrlab12
    • For this macro you will plot (using PLOT/READOUT=+ONAXIS) and list (using LIST2) four different files.
      1. sinewave.prm - Type 1000 Blue File
      2. fftdemo.prm - Type 2000 Blue File
      3. cities.prm - Type 5000 Blue File
        • This will be plotted along with the world.prm a Type 1999 Blue File, however world.prm will not be listed.
      4. world.dbf - A DBF File
        • For this one you should plot world.shp{LAYER={LABEL=NAME}}, but list world.dbf. By using LABEL=NAME, the plot will read the country name out of the world.dbf file and show it on the axis.
    • When the panel is setup there should be four columns (one column per file) and two rows (plots over lists) arranged so the list for a given plot is directly below it.
    • So that users can exit easily, you will also need and "Exit" button.
    • When you are done your panel should look like this:
      Click image for larger view.
    • Once your macro is done, try tunning it and clicking on the little 'X' above each of the plots. Notice how the plot will "pop" out of the panel for easier viewing. Clicking the 'X' in the "poped" window will "push" it back into the panel.