Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{alias:win}
h2. Name

*win* — Window specification

h2. Syntax
{panel:|borderStyle=solid|borderWidth=1|bgColor=#FFFFAA}

*win* _xwin xwax ywin ywax zwin zwax_

*win cen | out | cur | dat | sto | rea | z* 

{panel}

h2. Description

Set the graphical window in various ways. The extent of the window will always be in @xwin @xwax @ywin @ywax @zwin @zwax. See [Shell commands and Concepts|https://geocap.onconfluence.com/x/6wBN].

The graphical window plays an important part in Geocap. Many algorithms and display features work inside the window like gridding for instance.

h2. Arguments

_xwin xwax ywin ywax zwin zwax_ 
{indent}Specify the new window.{indent} 
*rea* _winfile_ 
{indent}Read windowfile _winfile_ from disk and activate the new window.{indent} 
*sto* _winfile_ 
{indent}Store windowfile _winfile_ to disk.{indent} 
*cur* 
{indent}Get a window around the cursor position. If you want to get closer, do the command over again. Internally the previous window is saved with sav 13.{indent} 
*dat* 
{indent}Will update the window coordinates with the min and max values of the data without any scaling of the graphical window.{indent} 
*cen* 
{indent}Make a quick zoom towards the center of the screen.{indent} 
*out* 
{indent}Make a quick zoom out of center of the screen.{indent} 
*z \[val]* 
{indent}Make a rubber band zoom to set the window. 
The *val* option will not change the window, but only set the *x y* coordinates into the @variables *@xgmin @ygmin @xgmax @ygmax*. The Tcl access is \[gvar xgmin] as an example. The rubber band box in this case is saved in workspace *^rub*. One can also draw the rubber band box by *dra rub*. 
{indent} 

h2. See also

[sav - Save window] , [ret - Return window] , [ssc - Self scale of data] , [vie - Viewport handling] , [xwi - Window on screen] , [zoom - Zoom on screen]
{pagebreak}