window (version 0.3.1.1)
index
window.py

Single-procedure module.
 
See procedure docstring for description.

 
Functions
       
window(nwindow)
Set the active canvas to a specified window number.
 
Use this routine if you want to plot onto another window.  You
can also use this routine to make a previously defined canvas
active so you can overplot to it or create a new plot in its
window.
 
Method Arguments:
* nwindow:  The window number specifying the canvas to make the
  active canvas.  Integer.
 
Output:
* The active canvas is set to the window number given in argument
  nwindow.  The system variable specifying the window number (i.e.
  active_canvas_num) is set to nwindow.
* If there is a previously defined active canvas it is moved to the 
  inactive canvases dictionary (system variable inactive_canvases).
  It remains displayed in its existing window.
* The names of the base graphics method and templates for the 
  active canvas and inactive canvases are stored in corresponding
  system variables suffixed by base_gm and base_tpl.
* If the canvas specified by nwindow is already defined, that 
  canvas is made the active canvas; if not the active canvas is 
  set to an empty list (and the base graphics method and template
  names set to empty strings).
 
Example:  A contour plot is made in window 0 (default), then a
second contour plot is made in window 1.  Then a line plot is
made in window 0, overwriting the original contour plot.  Window
1 is left unchanged:
  import Numeric as N
  from contour import contour
  from plot import plot
  x = N.arange(29) * 10.0
  y = N.arange(21) * 10.0 - 100.0
  data = N.outerproduct( N.sin(y*N.pi/360.), N.cos((x-140.)*N.pi/360.))
  contour(data, x, y, title='Example 1')
  window(1)
  contour(data, x, y, title='Example 2')
  window(0)
  plot(N.arange(10), N.sin(N.arange(10)/N.pi), title='Example 3')

 
Data
        __version__ = '0.3.1.1'