Command-line Invocation
来源:互联网 发布:python编写界面 编辑:程序博客网 时间:2024/06/06 07:01
cmd [ flags ] [ input files ]
If no input files are supplied, the program reads from stdin.Flags
- -Gname[=value]
- Set a graph attribute, with default value = true.
- -Nname[=value]
- Set a default node attribute, with default value = true.
- -Ename[=value]
- Set a default edge attribute, with default value = true.
- -Klayout
- Specifies which default layout algorithm to use, overriding the default from the command name. For example, running dot -Kneato is equivalent to running neato.
- -Tformat[:renderer[:formatter]]
- Set output language to one of the supported formats. By default, attributed dot is produced.
Depending on how Graphviz was built, there may be multiple renderers for generating a particular output format, and multiple formatters for creating the final output. For example, a typical installation can produce PNG output using either the Cairo or GD library. The desired rendering engine can be specified after a colon. If there are multiple formatting engines available, the desired one can be specified in a similar fashion after the rendering engine. Thus, -Tpng:cairo specifies PNG output produced by Cairo (using the Cairo's default formatter), and -Tpng:cairo:gd specifies PNG output produced by Cairo formatted using the GD library.
If no renderer is specified, or a renderer but no formatter, the default one is invoked. The flag -Tformat: produces a list of all of the renderers available for the specified format, the first one listed with a prefix matching format being the default. Using the -v flag, described below, will print which format, renderer, and formatter are actually used.
- -V
- Emit version information and exit.
- -llibrary
- User-supplied, device-dependent library text. Multiple flags may be given. These strings are passed to the code generator at the beginning of output.
For PostScript output, they are treated as file names whose content will be included in the preamble after the standard preamble. Iflibrary is the empty string "", the standard preamble is not emitted.
- -n[num]
- Sets no-op flag in neato. If set, neato assumes nodes have already been positioned and all nodes have a pos attribute giving the positions. It then performs an optional adjustment to remove node-node overlap, depending on the value of the overlap attribute, computes the edge layouts, depending on the value of the splines attribute, and emits the graph in the appropriate format. If num is supplied, the following actions occur:
- num = 1
- Equivalent to -n.
- num > 1
- Use node positions as specified, with no adjustment to remove node-node overlaps, and use any edge layouts already specified by the pos attribute. neato computes an edge layout for any edge that does not have a pos attribute. As usual, edge layout is guided by the splines attribute.
-y
flag is used, the coordinate system is inverted, so that increasing values of y correspond to movement from top to bottom.Note that the -G, -N and -E flags override any initial attribute declarations in the input graph, i.e., those attribute statements appearing before any node, edge or subgraph definitions. In addition, these flags cause the related attributes to be permanently attached to the graph. Thus, if attributed dot is used for output, the graph will have these attributes.
Environment Variables
- GDFONTPATH
- List of pathnames giving directories which a program should search for fonts. Overridden by DOTFONTPATH. Used only if Graphviz is not built with the fontconfig library
- DOTFONTPATH
- List of pathnames giving directories which a program should search for fonts. Overridden by fontpath. Used only if Graphviz is not built with the fontconfig library
- SERVER_NAME
- If defined, this indicates that the software is running as a web application, which restricts access to image files. See GV_FILE_PATH.
- GV_FILE_PATH
- If SERVER_NAME is defined, image files are restricted to exist in one of the directories specified by GV_FILE_PATH. This last is a list of directory pathnames, separated by semicolons in Windows or by colons otherwise. Note that sometimes, when using one of the layout programs in a web script, it is not enough to use an export command but rather the variables should be set when the command is run, for example,
SERVER_NAME=xxx GV_FILE_PATH="images:etc/images:/usr/share/images" dot -Tpng -o x.png x.gv
Note that the image files must really reside in one of the specified directories. If the image file is specified as an absolute or relative pathname, a warning is given and only the base name is used.
- GVBINDIR
- Indicates which directory contains the Graphviz config file and plug-in libraries. If it is defined, the value overrides any other mechanism for finding this directory. If Graphviz is properly installed, it should not be needed, though it can be useful for relocation on platforms not running Linux or Windows.
- Command-line Invocation
- command line
- command line
- command line
- Command-line
- Command Line
- Command Line -- List of command line commands
- Delphi command-line compiler
- Windows Xp: Command Line
- command line script
- Beginning cvs Command Line
- Grails Command Line Reference
- CUPS Command Line Interfaces
- linux command line reference
- VSS Command Line
- OSX Command Line
- Linux Command Line Encryption
- command line 技巧
- ZendServer Internal Server Error 500
- struts2_003:如何查看struts2的jar文件源代码和doc文件
- Vaadin Web应用开发教程(45): SQLContainer 概述
- Android ApiDemos示例解析(156):Views->Layouts->TableLayout->01. Basic
- The DOT Language
- Command-line Invocation
- C base64 decode
- Output Formats
- find -exec -ok 的用法 -mtime
- crtdbg.h: No such file or directory
- C long2a
- Node, Edge and Graph Attributes
- msgget & msgsnd
- 多线程初步