To demonstrate this concept the second frame sets C the viewport of the base plot. Each plot draws a variation of sinusoidal curve. C external NhlFAppClass external NhlFXWorkstationClass external NhlFPSWorkstationClass external NhlFNcgmWorkstationClass external NhlFXyPlotClass external NhlFCoordArraysClass C C Define the number of curves and points in each curve. 10 continue C C Initialize the HLU library and set up resource template. C C Create Application object.
C C Draw the plot.
Now set the viewport of the base plot only redrawing the base plot C causes all the other plots to be redrawn as well. Notice that they C are all resized and repositioned to match the new size and position C of the base plot. The whole assemblage functions as a single C composite plot object. C C Destroy the resource list. The workstation, all the plots, and the data objects are all C descended from the App object, so it is only necessary to C destroy the App object in order to destroy all the objects created C in this example.