Previous Getting Started with IDL: Signal Processing with IDL Next

Displaying the Results

Now look at all of the results at the same time. The plotting window can be split into six sections, making each section display a different plot. The system variable !P.MULTI tells IDL how many plots to put on a single page.

Enter the following lines to display a plotting window which shows all of the plots simultaneously.

  1. To display all plots at the same time with two columns and three rows, enter:
  2. !P.MULTI=[0,2,3]  
    

     

  3. Now, display original dataset, upper-left:
  4. PLOT,ORIGINAL,TITLE='Original (Ideal) Data'  
    

     

  5. Next, display noisy dataset in the upper-right:
  6. PLOT,NOISY,TITLE='Noisy Data'  
    

     

  7. Display filter function, middle-left. The SHIFT function was used to show the filter's peak as centered.
  8. PLOT,SHIFT(filter,100),TITLE='Filter Function'  
    

     

  9. Now, display low-pass filtered dataset in the middle-right:
  10. PLOT,LOWPASS,TITLE='Lowpass Filtered'  
    

     

  11. Display high-frequency noise, lower-left:
  12. PLOT,HIGHPASS,TITLE='Highpass Filtered'  
    

     

  13. Finally, display the SMOOTH function dataset for comparison with the low-pass filtered data in the lower right.
  14. PLOT, smoothed, TITLE = 'Smoothed with Boxcar average'  
    

     

    Figure 5-8: Using !P.MULTI to Show Six Plots in One Plotting Window

    Figure 5-8: Using !P.MULTI to Show Six Plots in One Plotting Window

     

  15. Before continuing with the rest of the chapters, reset the plotting window to display a single image by entering the command:
  16. !P.MULTI = 0  
    

  IDL Online Help (March 06, 2007)