Previous Next        Current Page: NeXtMidas Training / Macros - Part 2 (Graphics) / Lab 2 - Macro Graphics / Instructions
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
   + Intro to Graphics   
   + GControls   
   + Lab 1 - Macro Graphics   
   + Plotting and Listing   
   + Panel Setup   
   - Lab 2 - Macro Graphics   
      - Instructions   
      - Solution   
   + Conclusion   
   + Lab 3 - Macro Graphics   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
Applets & WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • Lab 2 - Macro Graphics:
    • Create a new macro called graphicslab2
    • 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 1000 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 an "Exit" button.
    • When you are done your panel should look like this:
      Click image for larger view.
    • Once your macro is done, try running 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 "popped" window will "push" it back into the panel.