Name
xwi — Window on screen
Syntax
xwi [stereo | del | sel] [pixels] | [xpixels ypixels] [con] [tk] [exist] [toplevel | top] [fullscreen | fsc] [xyscale]
When a graphical standalone window is generated there are a few manipulation commands that can be used to control the behavior:
xwi min | max | fullscr
Description
Handling of display window and its parameters in the graphical screen. The graphical display window is called an xwindow or just window.
Arguments
stereo
del [1 | 2 | 3 ...]
pixels
xpixels ypixels
sel number
con number
exist number
Example of checking if a window exists
xwi exist 3
set doesexist [gvar rc]
#will set the variable $doesexist to 1 if the xwindow does exist, and -1 if not existing.
subframes no_of_subframes
toplevel | top
fullscreen | fsc
xyscale scale | off
min
max
fullscr
Examples
Ex.1: Setting a specific scale on a graphical window
win demo ;# get the demo window xwi xyscale 100000 ;# establish scale 1:100000 mak ran 11 ;# 11 random points grp 111 111 ;# make a grid map ;# map the grid sma i 250 can ans 2 ;# spline map axe tic ;# dra axes tx2 lle col bla txt "Scale 1:100000"
The above example produces a similar image.
The demo window plotted in scale 1:100000
Ex.2: Plotting the Atlantis grid in scale 1:20 000 000
# Setting scale xwi xyscale 20000000 ;# scale 1: 20 000 000
The Atlantis grid plotted on the screen in scale 1:20 000 000