pro WDIVIDE, nx, ny
;------------------
; split window into plotting regions
on_error, 2
if n_elements(ny) eq 0 then ny=1
if n_elements(nx) eq 0 then nx=1
nx=fix(nx) & ny=fix(ny)
!p.multi=[0, nx, ny]
end
