|
Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://xray.sai.msu.ru/~polar/xmgr/xmgr.html
Дата изменения: Mon Aug 25 17:19:31 1997 Дата индексирования: Mon Oct 1 21:36:13 2012 Кодировка: Поисковые слова: annular solar eclipse |
xmgr is an XY plotting tool for workstations or X-terminals using X. A few of its features are:
While xmgr has a convenient point-and-click interface, most parameter settings and operations are available through a command line interface (found in Files/Commands).
There are numerous popups accessible through Graphs pulldown menu that allow the manipulation of graph parameters. Most graph operations work on what is referred to as the `current graph', marked by small filled rectangles at the corners of one graph. The 10 graphs available by default in this version of xmgr are numbered from 0 to 9.
To install xmgr, refer to the document INSTALL found in the xmgr distribution. This will describe the details to successfully install xmgr.
For bug reports, comments, etc., send mail to the mailing list
acegr@admin.ogi.edu
As a last resort (don't expect an answer), send mail to
pturner@amb4.ccalmr.ogi.edu
The home of xmgr sources and documentation is ftp.ccalmr.ogi.edu [129.95.72.34] in CCALMR/pub/acegr.
The interactive xmgr program is called xmgr, if used in batch mode, grbatch. If grbatch is not found, contact your system administrator, or see the section on installation. For grbatch to work properly it is important that it be called grbatch as it is the name that distinguishes xmgr from grbatch. They are the same program, but when executed as grbatch, the X interface is not initialized and grbatch terminates at the end of execution without user intervention.
Please note that grbatch does not read the any X resource files, so that it can be run from dumb terminals and over phone lines. Don't expect resource settings used for xmgr to work for grbatch. See the section on setting defaults using a .xmgrrc file.
Example:
xmgr -autoscale x -p params.par data.datReads parameters from params.par and data from data.dat, but overrides any settings for the X axis found in the parameter file.
Example:
xmgr -arrange 2 2Creates a 2x2 matrix of graphs.
Example:
xmgr -device 2Sets the hardcopy device to PostScript portrait.
For example, to activate four graphs and read data to each graph:
xmgr -arrange 2 2 data0.dat -graph 1 data1.dat -graph 2 data2.dat -graph 3 data3.dat
This command creates 4 graphs arranged in a 2x2 matrix, and reads a file into each graph.
xmgr -netcdf t.nc -netcdfxy null y
Reads y from t.nc and loads to X the index (starting from 1).
xmgr -netcdf t.nc -netcdfxy x y -netcdfxy x1 y1
Reads x and y from t.nc, then x1 and y1 from the same file. 2 sets are created, both of type XY, one with (x, y), the other composed of (x1, y1). another example reading data from 2 CDF files:
xmgr -netcdf t.nc -netcdfxy x y -netcdf t2.nc -netcdfxy x1 y1
xmgr -wd examples mlo.dat -wd ../moredat brw.d hilo.datUnfortunately, this option not allow wild cards, as they are expanded in the current directory only.
xmgr -block block.d -bxy 1:4 -bxy 2:6will read block.d and generate 2 sets of type XY using columns 1 and 4 for the first set, and 2 and 6 for the second set.
xmgr -block block.d -type xydy -bxy 1:3:4will read block.d and generate a set of type XYDY (an XY set with error bars) using column 1 and 3 for X and Y, and column 4 for the error bars.
Read the parameter file parameter_file.
xmgr -maxcolors 18 -pexec "cmap 17,255,0,255"Sets the maximum number of colors to 18 and sets color 17 to cyan. Colors 0-15 are set to the defaults, color 16 is undefined (the actual color will vary).
The source setting stays in effect until the next -source command is given.
On startup xmgr will look for a .xmgrrc file in the users' home directory allowing changes to the default behavior of xmgr. The construction of the xmgr default file is the same as for a parameter file.
The following X resource settings are supported:
Use GXinvert to draw rubberband lines and the graph focus markers if this resource is set to True.
A boolean resource used to exchange the color indices for black and white.
Set the number of sets per graph.
Set the number of graphs.
Set the number of colors allocated. There is no support in the graphical portion of the user interface for more than 16.
Applies to the Pick set operations and allows an opportunity to accept or cancel any operation performed.
When Yes, allow double clicks on the canvas to bring up various popups depending on the location of the pointer when the double click occurs. Double clicking to the right of a graph brings up the View/Ticks popup set to the Y-axis, below the graph brings up the View/Ticks popup set to the X-axis, inside the graph brings up the files popup if no sets are active or the View/Symbols popup set to the set nearest the pointer. Double clicking above the graph brings up the View/Title-subtitle popup, to the right of the graph, the View/Legend popup.
The command line option to set this resource is -dc or -nodc.
When this resource is Yes or True, allow autoscaling to occur each time a set is read from the File/Read sets popup.
Have xmgr handle backing store if the server doesn't.
The command line option for this is -bs or -nobs.
Set the location of xmgr. This will be where help files, auxillary programs, and examples are located. If you are unable to find the location of this directory, contact your system administrator.
Set the command string to use for spooling to a PostScript printer. The default (unless changed during the build process) is "lpr -h".
Set the command string to use for printing the FrameMaker .mif format. The default (unless changed during the build process) is "cat >acegr.mif < ", i.e., output is to a file.
Set the command string to use for spooling to an HPGL capable printer or plotter.
Select the hardcopy device.
The device numbering is as follows:
Set the name of the editor to use in Data/Edit-Create set. The default is vi.
Executing xmgr as grbatch suppresses the initialization of the graphical user interface and allows hardcopy plots to be made without intervention.
Read data from disk or pipes, read variables from netCDF or HDF files, read and write plot parameters, read block data, write one or more xmgr datasets, set the current working directory, set the printer options, print (hardcopy), access the command line interpreter, describe the status of data sets, graphs and regions, and display results of computations and other operations.
Read one or more data sets. The list item at the top of the popup displays
the contents of the current directory. Select a file or directory by clicking
on the item with the right mouse button. The selection is placed in the text
item labeled `File:' and checked to see if it is a directory or a file.
Selecting a directory causes xmgr to change to the new directory and
reload the file list with the contents of the new directory. Selecting a
file does nothing until the `Accept' button is pressed or