📄 genplot.diff
字号:
.\" Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved.mc |.\" @(#)genplot.1 3.14 25 Sep 1997 ESI.TH GENPLOT 1\-ESPS 25 Sep 1997.mc.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Speech, Inc..SH "NAME"genplot \- plot data from ESPS files in multiline format.SH "SYNOPSIS".B genplot[.BI \-e " range"] . . . [.BI \-f " function"] [.BI \-i " item range"] . . . [.BI \-l " int"] [.BR \-m { cpv }].br[.BI \-n] [.BI \-o " outdir"] [.BI \-r " range"] [.BI \-s " int"] [.BI \-t " text"] [.BI \-x " debug level"].br[.BI \-y " range"] [.B \-z] [.B \-E] [.BI \-T " device"] [.BI \-V " text"] [.BI \-X " scale"] [.BI \-W " generic window system options"].I file.SH "DESCRIPTION".PP.I Genplottreats files as "generic" ESPS files containing records with some fixednumber of numerical elements per record. In some ESPS files, each recordhas a numerical tag giving a location in some source file (this sourcefile is usually a sampled-data file, so that the tag corresponds to atime coordinate). .PP.I Genplotreads an input file.I fileand produces.IR xy- plotsof arbitrary record elements.I vs.record number (the default), record tag. or position within the record.If the file name is ``\-'', the standard input is read.By default,the output is in Unix GPS (``Graphics Primitive String'') formatand is displayed on the \s-1MASSCOMP\s+1 or Sun display, but with the.B \-Toption, this may be sent to the standard output,obtained in Tektronix format rather than GPS,or plotted on a hardcopy device..PPThe abscissas are scaled so that the spacing between plotted pointsis an exact integer number of device resolution units in thehorizontal direction. Each selected record element is plotted onseparate axes; the axes for the second selected element are lined upbelow those of the first, etc. If the required number of points foreach specified record element will not fit in the available width ofthe page, the plots are continued on additional ``lines'': sets ofaxes lined up below the first set. If more continuation lines areneeded than will fit on one page, the plot is continued on additionalpages. .PPIf the graph is to be displayed on a \s-1MASSCOMP\s+1 or Sun display,then a page corresponds to a \fIregion\fP in \s-1MASSCOMP\s+1 GPS universecoordinates,and up to 25 regions can be displayed simultaneously on the screen.If the \fB\-o\fP option is specified, then a directory is createdwith the name given by \fIoutdir,\fP and a file is created for eachpage (region) generated. Note, the \fB\-o\fP option only applies ifthe device name specified is``gps'' or ``mcd'' (the default), and the output is\fIalso\fP sent to standard output or displayed on the screen unlessthe \fB\-n\fP option is chosen. The program \fImcd\fR is supplied by\s-1MASSCOMP\s+1 on their systems, and by \s-1ESI\s+1 on others..PPOn \s-1MASSCOMP\s+1 workstations the color and line style of output to ``gps'' or ``mcd'' depend on theenvironment variable BUNDLE. The default is GPS bundle number 20, whichgives solid lines on monochrome displays..PPOn a Sun workstation (not running X windows), this program must be run from within the\fISuntools\fR window system. The plot will appear in a new window,which can be moved, resized, closed (reduced to an icon), and removed byusing the functions on the \fISuntools\fR menu. To get this menu, movethe mouse cursor to the title bar of the plot window and press the rightmouse button..SH "ESPS PARAMETERS".PPThis program does not access the parameter file..SH "ESPS COMMON".PPThis program does not access the ESPS common file..SH "ESPS HEADERS"The following items of the input sampled-data file header are accessed:common.type, common.ndrec, common.ndouble, common.nfloat, common.nlong,common.nshort, common.nchar, and common.tag. .SH "OPTIONS"The following options are supported. Values in brackets are defaults. .TP.BI \-e " grange" "\fR [1]".LP\fB\-e "\fIfield-name\fB\^[\^\fIgrange\fB\^]\^"\fR.TP.BI "\-e " field-nameThis option specifies a set of elements within each record;each element separately is plotted against the record number or, if.B \-Eis specified, against the tag..IPThe argument may be a general range specification acceptable to.IR grange_switch (3\-ESPSu).This specifies a set of integers that indicate the positions of theelements within a record.The tag, if present is counted as element zero.The other elements are counted starting with one,whether tags are present or not.To find the element number of an element in an ESPS file, use.IR fea_element (1\-ESPS).The following are allowable forms for.I grange..RS.TP.I elementA single integer specifies a single record element..TP.IB first : lastA pair of elements specifies an inclusive range of elements..TP.IB first :+ incrThe form with the plus sign is equivalent to.IB first : lastwith.IR last " = " first " + " incr..TP.IB range , " . . . " , " range"A comma-separated list of range specifications of the first threeforms allows for noncontiguous sets of elements.The ranges should be given in increasing order and without overlaps..RE.IPIf the specified range contains points not in the file, therange is reduced as necessary..IPIf the input file is an ESPS feature (FEA) file, a field within arecord may be specified by name.In that case, the bracketed.I grangerefers to positions within the field, counting the first as positionzero.A field name without a bracketed.I grangerefers to the entire field.In that case the double quotes can be omitted as well,as their only purpose is to prevent the shellfrom giving the usual special interpretation to the brackets..IPThe command line may contain several.B \-eoptions with field names.The.B \-eoption without a field name may be used at most onceand may not be used in the same command with the form containing afield name..TP.BI \-f " function" "\fR [(none)]"Apply the function \fIfunction\fP to the y-axis in order to compress itsamplitude range. Only two functions are recognized in this version: "sqrt"(for the square root) and "log" (for the natural logarithm)..TP.BI \-i " grange" "\fR [1]".LP\fB\-i "\fIfield-name\fB\^[\^\fIgrange\fB\^]\^"\fR.TP.BI "\-i " field-nameThis option, like the.B \-eoption, specifies a set of elements within each record;however, the elements within a recordare plotted together in the order specified,and this is done separately for each record.The arguments have the same form as those for the.B \-eoption, and the same restrictions apply:the form without a field name may be used with any file type,may be used only once,and may not be used together with the form containing a field name;the latter may be used only with FEA files and may be repeated.The.B \-eand.B \-ioptions may not be used together..TP.BI \-l " int"Number of element values per labeled tic mark on the.IR x- axis.If elements are plotted .I vs.record number, the default for .I intis 10. If elements are plotted vs tag value, the default for.I int is 100. .TP.BR \-m { pvc "} [c]"``Mode.'' Selects one of 3 styles..RS.TP.B cConnected. Successive data points are connected by straight lines..TP.B pPoint. Individual data points are plotted without connecting lines..TP.B vVertical line. Each point is connected to the .IR x- "axis (" y "=0)"by a vertical line..RE.TP.BI \-nSuppress output to screen or stdout when writing into a directory with the\fB\-o\fP option..TP.BI \-o " outdir" "\fR [(none)]"Create a directory named \fIoutdir\fP and write output pages(regions) into files named \fIpage1, page2, page3,\fP etc. Thisoption is only valid if the output device is gps or mcd. .TP.BI \-r " first" : "last" "\fR [(first in file):(last in file)]".TP.BI \-r " first" :+ "incr"In the first form, a pair of unsigned integers specifies the range ofrecords from which element values are to be plotted. Either .I firstor.I lastmay be omitted; then the default value is used. If .IR last " = " first " + " incr,the second form (with the plus sign) specifies the same range as thefirst. If the specified range contains points not in the file, therange is reduced as necessary. .TP.BI \-s " int" "\fR [1]"Samples are numbered starting with the given integer, rather than 1,for the first sample in the file..TP.BI \-t " text" "\fR [(none)]"Title to be printed at the bottom of each page..TP.BI \-x " debug level" "\fR [0]"Print diagnostic messages as program runs (for debugging purposesonly)..TP.BI \-y " upper" ":" "lower".TP.BI \-y " limit"Ordinate range.Specifies values for the upper and lower.IR y- axislimits.The second form is equivalent to.BI \-y " \-limit" ":" "limit."If the option is omitted, or if both limits are omitted,.RB ( \-y: )then a range is computed from the databy finding the maximum and minimum value for each element(or, if the.B \-ioption is in effect, for each record).If one limit is omitted, a default limit is computed from the data..TP.B \-zDo not draw the.IR x- "axis (" y "=0).".TP.B \-ESpecifies that elements are to be plotted .I vs.tags (rather than record numbers). .TP.BI \-T " device" "\fR [mcd]".I Devicemay be.BR gps ,.BR mcd ,.BR tek ,.BR suntools ,.BR hp ,or.BR hardcopy .The default is.BR \-Tmcd,which displays the output on the graphics screen by piping it through\fIxmcd (1\-ESPS)\fR. Specifying.B \-Tgpssends output to the standard output in \s-1MASSCOMP\s+1 Unix GPS format.Specifying.B \-Ttekcauses output to be sent to the standard output in Tektronix 4000-seriesformat, andIf.B \-Tsuntoolsis used, then the display will be forced to use \fIsuntools\fR windowsystem (on Suns and Solbournes only), even if ESPS has been configuredto use the X window system. If ESPS is built for X, then it uses X forplotting by default.If.B \-Tmcdis used on a Masscomp and ESPS has been configured to use X windows,then the old SP-40 \fImcd\fR is used instead of X windows.Specifying.B \-Thardcopyplots it on a hardcopy device, if one was set up in the installationscript. Note that the word \fIimagen\fR was used for this option inprevious versions. It is still accepted, but \fIhardcopy\fR is meantto be more general..B \-Thpproduces output for an HP LaserJet printer. Note that the output isproduced on standard out and it is not spooled to the printer by thiscommand. Use of this option will result in about 750K bytes of outputper page. If the link to your LaserJet is slow, it might takeseveral minutes to send it to the printer. In a later version, this will be merged with the\fIhardcopy\fR option above for direct spooling..TP.BI \-V " text" "\fR [(none)]"Title to be printed along the left edge of each page (running upward)..TP.BI \-X " scale" "\fR [4]"Number of resolution units along the.IR x- axisbetween plotted samples. Must be an integer..TP.BI \-WThis option is followed by a characterstring consisting of the generic window system options. These options arepassed onto \fImcd\fR or \fIxmcd\fR. This option is used to pass along generic X windowarguments to \fIxmcd\fR or Suntool arguments to \fImcd\fR on Suns. Thisoption might not have an effect on all systems. For example, on asystem running X windows, to cause the plot to appear at a particularscreen location the following command could be used: .br\fIgenplot -W "=300x250+50+200" file\fR..brSee \fIxmcd(1\-ESPS)\fR for details..PPFor Sun systems, this program will plot under either X windows, orSuntools. By default, if the \fB-T\fR option is not used, it will expect X windows. To plot under Suntools you can use the \fB-Tsuntools\fRoption. If you always use Suntools, you can avoid using the \fB-T\fRoption by defining the environment variable \fBEPLOTDEV\fR to be\fIsuntools\fR. This will make the Suntools window system the default.This variable is ignored if the machine type is not Sun4, SUN3, orSUN386i..SH "EXAMPLE".PP.nf% \fBgenplot \-T \fRhardcopy \fB\-e \fR1:2 file.ana# Send output to be printed on a laser printer.% \fBgenplot \-e\fR3:5 \fB\-o\fR TEST \fB\-n \fP file.ana# create a directory called TEST to which to send the output, and# suppress output to stdout (\-n option). The files generated will# correspond to pages generated by the first example above. To view# the second page on a \s-1MASSCOMP\s+1 Graphics Terminal, type the following:.BR mcd " TEST/page2"# or.BR ged " TEST/page2"# The latter command allows you to zoom into various parts of thegraph; see the DATA PRESENTATION APPLICATION PROGRAMMING MANUAL formore information concerning \fIged\fP..fi.SH "FILES".PPNone..SH "SEE ALSO".PP.nf\fImlplot\fP(1\-ESPS), \fIplotsd\fP(1\-ESPS), \fIigenplot\fP(1\-ESPS),\fIscatplot\fP(1\-ESPS), \fIxmcd\fP(1\-ESPS).fi.SH "DIAGNOSTICS".PP.nfgenplot: unknown option \-\fIletter\fPUsage: genplot [\-e range]...[\-f function][\-i item range]...[\-l int] [\-m{cpv}][\-n][\-o outdir][\-r range][\-s int][\-t text] [\-x debug level][\-y range][\-z][\-E][\-T device][\-V text] [\-X scale] filegenplot: unknown function type \fIfunction\fPgenplot: conflicting options, \-i and \-e cannot be used together.genplot: element range should not be less than zero.genplot: can't open \fIfilename\fP: \fIreason\fPgenplot: \fIfilename\fP is not an ESPS filegenplot: empty amplitude range specified.genplot: invalid element rangegenplot: tags specified but not availablegenplot: only \fInelements\fP elements in a record, truncating specified range.genplot: sorry, plotting tags has not been implemented, yet.genplot: empty amplitude range specified.genplot: calloc: could not allocate memory for \fIvariable\fP.genplot: only \fInrecords\fP records read.genplot: fatal error: argument out of range for sqrt. \fI element no.\fPgenplot: fatal error: argument out of range for log. \fI element no.\fPgenplot: fatal error: TRYING TO DIVIDE BY ZERO problem with element number \fIelement no.\fP you are trying to plot a CONSTANT element without \-y option either explicitly give an amplitude range or don't plot this range.genplot: Warning, only 25 regions can be displayed on Masscomp Terminal. stopping output to stdout..SH "FUTURE CHANGES"Options to allow more control over format. More intelligent choice ofaxis subdivisions. Option to suppress Imagen document-control headerand allow output to actual Tektronix-4014 terminal.Selection of default \fIy\fP-axis limitsaccording to header information. Multiple input files. Simultaneousplotting of "markers", just as .I mlplot(1-ESPS) plots tags. .SH "BUGS".PPThis version of the program does not handle complex feature fields withthe \fB-e\fR or \fB-i\fR option with a field name. You must use fea_element toget element numbers for the desired fields and then use those numberswith the \fB-e\fR or \fB-i\fR options. This will be improved..PPDefault for the.B \-loption should depend on the .IR x- scale.RB ( \-X " option).".SH "AUTHOR"Ajaipal S. Virdy, man page by John Shore.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -