Previous Getting Started with IDL: Images Next

Resizing a Graphics Window

IDL automatically creates a window for displayed graphics if one does not already exist. You can use the WINDOW command to create new windows with custom sizes.

  1. To display Manhattan in a larger graphics window, enter:
  2. WINDOW,0,XSIZE=800,YSIZE=600  
    

     

  3. Then enter:
  4. TV,MYIMAGE  
    

     

    Figure 6-5: Visualizing a graphic through a larger graphic window

    Figure 6-5: Visualizing a graphic through a larger graphic window

     

  5. Enter WDELETE at the Command Line to dismiss the graphics window for the next graphic.
  6. WDELETE  
    

The WINDOW command above creates a new version of window number 0 that is 800 pixels wide (specified with the XSIZE keyword) and 500 pixels tall (specified with the YSIZE keyword).

  IDL Online Help (March 06, 2007)