C C Create data arrays for XyPlot object. Color '1' is C the background color and '2' is the foreground color. Since we have two sets of points that we want to color differently, C we need to create two Data obects here. 1,2 C C Initialize data.
C C Draw the plot.
C C NhlDestroy destroys the given id and all of its children C so destroying xworkwid will also destroy plotid. C C Restores state.