man ploticus (Commandes) - ploticus

NAME

ploticus

SYNOPSIS

ploticus -prefab prefabname parm=value .. [-options]

0.. OR ..

ploticus scriptfile [-options]

<br><br><br>

DESCRIPTION

ploticus is a program that produces plots and charts from data, and produces results that can be viewed on web pages, paper, slides, or interactively on the screen. Standard types of plots may be done using <a href="prefabs.html"> 0prefab plot templates </a> , or a user-developed <a href="scripts.html"> 0script file </a> may be supplied for greater flexibility and customization. ploticus may be executed from the command line or <a href="cgi.html"> 0as a CGI program. </a>

<br><br><br>

EXAMPLES

See the various <a href="prefabs.html"> 0prefab examples </a> 0. A large number of <a href="../gallery/index.html"> 0script examples </a> are also available.

<br><br><br> <a name=options></a> <br>

COMMAND LINE ARGUMENTS

The ploticus command line arguments may be given in any order.

-prefab prefabname

Produce a plot using a <a href="prefabs.html"> 0prefab </a> plot template. prefabname identifies the template, eg. cron or vbars. Necessary parameters are supplied on the command line using the form parm=value.

scriptfile

Ploticus <a href="scripts.html"> 0script file </a> that will be interpreted to produce results. Alternatively, -stdin may be used to indicate that script will be available on standard input.

<a name=varvalue></a>

variable=value

Declares the named variable and sets it to the given value. This is a convenient way to pass information to prefabs and scripts. For example: CUTDATE=10-31-98 would declare the variable CUTDATE and set it to 10-31-98. Any argument on the command line that contains an embedded equals-sign (=) is taken as a var-value pair. Variable names are case-sensitive.

-o outfile | stdout

Specify a filename where the result will be written. No processing is applied to this name. If -o stdout is used, result will be sent to standard output. If -o is not specified, a <a href="#outfile"> 0default output filename </a> will be used.

<br><br><br>

RESULT FORMAT OPTIONS (availability may depend on specific ploticus build):

-png &nbsp; &nbsp; &nbsp; PNG image

-jpeg &nbsp; &nbsp; JPEG image

-svg &nbsp; &nbsp; &nbsp; <a href="svg.html"> 0SVG </a> graphic. -svgz, -tag and -zlevel options are <a href="svg.html"> 0also available </a>

-wbmp &nbsp; WBMP image

-eps &nbsp; &nbsp; &nbsp; EPS (encapsulated PostScript)

-ps &nbsp; &nbsp; &nbsp; &nbsp; paginated PostScript to stdout

-x11 &nbsp; &nbsp; &nbsp; &nbsp; display on X11 screen

-map &nbsp; &nbsp; produce a <a href="clickmap.html"> 0server-side clickable imagemap file </a> along with png, gif, or jpeg image

-csmap &nbsp; &nbsp; produce a <a href="clickmap.html"> 0client-side clickable imagemap file </a> along with png, gif, or jpeg image

<br><br><br>

RESULT SIZE OPTIONS

-scale sx[,sy]

Scale the final result. If one value is given, the result is scaled by this amount in both x and y. If two values are given, scaling in x and scaling in y may be done independently. A scale value of less than 1.0 reduces the size; an scale value of greater than 1.0 enlarges. Scaling is done relative to the origin (0,0) which is at the lower left.

-pagesize width,height

Control the size of the display window or image. width and height are in absolute units. Absolute location 0,0 is at the lower left corner.
This option may be used to control the size of the X11 display window result. The default size is 8 inches wide by 8 inches high. The resulting size is not influenced by the -scale option.
PNG, GIF, JPEG size will be determined by the extent of the graphic; however, -pagesize (or the proc page pagesize attribute) must be used for images where drawing occurred beyond (8.0,8.0) absolute (inch) coordinate, in order to allocate enough image memory (otherwise the top or right areas of the graphic will not be visible).
-pagesize has no effect with EPS or paginated PostScript results (the PostScript BoundingBox will be determined by the extent of the graphic).
Example: -pagesize 7,3

-tightcrop

For image or EPS output, crop the result tightly to the extent of the design. Normally a small margin is allowed on all four sides. This option sometimes crops a bit too tight; if so try -croprel.

-crop x1,y1,x2,y2

Crop image or EPS result to the box specified by x1,y1 and x2,y2, in absolute units. Note that there may be no spaces in the coordinates specification. Cropping takes place after design is rendered and does not affect coordinate locations.

-croprel left,bottom,right,top

Crop image or EPS result tightly to the extent of the design (like -tightcrop), but then adjust the cropping outward or inward on one or more sides. left is the amount to adjust the left side, in absolute units. Similarly for bottom, right, and top. Positive values always adjust outward from center; negative values adjust inward (tighter). There may be no spaces in the left,bottom,right,top specification. Cropping takes place after design is rendered and does not affect coordinate locations.

<br><br><br>

GRAPHICS ENVIRONMENT OPTIONS

-font font

sets the overall font to font. See <a href="fonts.html"> 0fonts </a> for more info.

-textsize pointsize

sets the overall default textsize to pointsize. All embedded size specifications will be rendered relative to this.

-linewidth w

sets the overall default linewidth to w. All embedded line width specifications will be rendered relative to this. See linedetails(pli) for more on line width.

-color color

sets the overall default text and line drawing color to color.

-backcolor color

sets the background color to color.

-cm

Use centimeters as absolute units. On the command line this must appear to the left of any arguments dealing with absolute unit values, such as -pagesize. If cm will always be the desired absolute units, the preferred way to achieve this is by using units: cm in a <a href="../doc/config.html"> 0ploticus config file. </a>

-inches

Use inches as absolute units. This is the default.

<br><br><br>

INTERACTIVE USE OPTIONS

-winloc x,y

Control where on the screen the upper-left corner of the X11 display window will be placed. x and y are in pixels. Example: -winloc 200 0

-v command

-viewer command

After generating results in the specified format, execute command in order to view the results on your screen. The output file will automatically be included in the command. For example, if a GIF file is being generated you might use this to invoke the xv utility: -viewer xv. If PostScript is being generated you could use something like this to invoke the ghostview utility: -viewer "gv -magstep -1". The given command must be available on your system and locatable in your command search path. This option may not be used with -o stdout.

<br><br><br>

PAPER ORIENTATION OPTIONS

-landscape

For paginated postscript, set paper orientation to landscape (oblong).

-portrait

For paginated postscript, set paper orientation to portrait.

-posteroffset x,y

Allows production of large-size posters made up of multiple standard sheets of paper butted together. May be used only with paginated PostScript, and should be used in combination with the -scale and -textsize options. x,y is the point within your result (in <a href="attributetypes.html#positionunits"> 0absolute units </a> ) that is to be placed at the lower left corner of the page. For further discussion of this, see <a href="posters.html"> 0posters </a> 0.

<br><br><br>

DEVELOPMENT AND DEBUGGING OPTIONS

-debug

Debug mode. Causes dianostic information to be written to the diagnostic stream (stderr by default, see -diagfile below). Highly recommended if you are experiencing difficulty. Best to use -debug as the first (leftmost) argument so that it can report on all arguments gotten. Another effect of debug mode is that any temporary files are not removed upon termination.

-showbad

Identify unplottable data, showing the value, and its row and field.

-diagfile filename | stderr | stdout

All non-error messages and output will be written to this file (default is stderr).

-errfile filename | stderr | stdout

All error messages will be written to this file (default is stderr).

-help or -? or -version

Print version number, copyright info, web site address, etc.

<br><br><br>

<a name=outfile></a>

OUTPUT FILE NAMES

The output file may be specified on the command line using the -o option, or via Proc Page's outfilename attribute. If so, the result is written to a file of that name. -o stdout may also be used to send result to standard output.

Otherwise, if your script filename has a "recognized extension" ( .p, .pl, .plo, .pls, .htm or .html ), the base part of the script file name is used and .png, .gif, etc. is appended. If your script filename doesn't have a recognized extension, the generic name out.* will be used.

X11 output is always displayed on the screen, and paginated PostScript is written to standard output unless -o is used.

If page breaks (Proc Page) are encountered when rendering in any format other than paginated PostScript, special action is necessary since each page must go into a separate file. A Proc Page outfilename may be specified for each page; otherwise a pn prefix will be attached to the beginning of each page's output file name to indicate page n.

<br><br><br>

USAGE EXAMPLES

The following example uses the <a href="scat.html"> 0scat prefab </a> :

ploticus -prefab scat -png datafile=results.dat x=2 y=3

The following examples assume that you have a script file called lineplot1.p.

ploticus -x lineplot1.p = view on X11 screen
ploticus -png lineplot1.p = create PNG image lineplot1.png
ploticus -png lineplot1.p -viewer xv = produce PNG and view using xv (assuming xv image viewer is available on your system).
ploticus -eps lineplot1.p = produce EPS file lineplot1.eps
ploticus -eps lineplot1.p -viewer gv = produce EPS and view using gv (that's ghostview, assuming it is available on your system).
ploticus -eps lineplot1.p -o lineplot.eps = produce EPS into file lineplot.eps
ploticus -ps lineplot1.p | lp = produce paginated postscript and send to unix lp print spooler.
ploticus -ps lineplot1.p -veiwer gv = produce paginated postscript and view using ghostview.

<br><br><br> <a name=environment></a>

ENVIRONMENT

PLOTICUS_CONFIG

The name of a <a href="config.html"> 0ploticus configuation file </a> , for setting default date notations, number notations, measurement units, etc.

PLOTICUS_PREFABS

The path name of a directory where ploticus will look for <a href="prefabs.html"> 0prefab </a> scripts. The "factory" prefabs are located in the ploticus ./prefabs subdirectory.

LC_CTYPE, LC_COLLATE, LANG

Locale support. Thanks to Oleg Bartunov oleg@sai.msu.su for contributing this. pl must be built with -DLOCALE for this to work.

TDH_ERRMODE

Control the disposition of error messages. Allowable values: stderr which is the default, and cgi which causes error messages to be written to stdout with html formatting.

<br><br><br>

AUTHOR

Stephen C. Grubb

<br><br><br>

SEE ALSO

<a href="http://ploticus.sourceforge.net"> 0http://ploticus.sourceforge.net </a>

<br> <br> </td></tr> <td align=right> <a href="../doc/Welcome.html"> <img src="../doc/ploticus.gif" border=0></a><br><small>data display engine &nbsp; <br> <a href="../doc/Copyright.html">Copyright Steve Grubb</a> <br> <br> <center> <img src="../gallery/all.gif"> </center> </td></tr> </table>