Viewing contents of file '../idllib/astron/contrib/varosi/code/allpro/display_new.pro'
;+
; NAME:
; Display_NEW
; PURPOSE:
; For the MODION widget:
; Find the energy levels that are flagged as newly selected or modified
; and display them in the central draw widget window.
; Usually called by pro Draw_Axes_Set_V of CW_Draw_Axes widget,
; when value is set by the Modion widget.
; CALLING:
; Display_NEW, widgst
; INPUTS:
; widgst = structure, state of CW_Draw_Axes widget.
; OUTPUTS:
; None.
; COMMON BLOCKS:
; common modion_ELevs, ELevs
; common modion_Widget, modion_widget
; EXTERNAL CALLS:
; pro Display_ELevs
; PROCEDURE:
; Straightforward.
; HISTORY:
; Written: Frank Varosi NASA/GSFC 1994.
;-
pro Display_NEW, widgst
common modion_ELevs, ELevs
common modion_Widget, modion_widget
on_error,2
save_win = !D.window
WSET, widgst.draw.window
display_ELevs, ELevs,/NEW, ZOOM=modion_widget.Zoomf/modion_widget.Zfmax
if (save_win GE 0) then wset, save_win
end