dot

Dot language

Tag(s):

Command to generate image with dot

dot -Tpng -o Output.png Input.dot

Frequently used attributes

digraph G {
  graph [

Graphviz binaries depend on a few Visual Studio DLLs

Tag(s):

Need to install Microsoft Visual C++ 2005 Redistributable Package. Otherwise, Graphviz applications will not run. For example, if you are trying to run dot.exe in the Command Prompt, it will display the following message: "The system cannot execute the specified program."

Add spacer

Tag(s):

digraph G
{
  // Add space using width and height attributes.
  //  Recognized units are in, px, pc, pt, cm and mm 
  //  for inches, pixels, picas, points, centimeters and millimeters, respectively. 

Debian Dependencies Graph

Tag(s):

Command executed to generate debian application dependency graph using dot languge:

#!/bin/bash
xsltproc System.xsl System.xml > System.dot
dot -Tpng -o System.png System.dot

System.xml

Diagram perserved while adding annotations

Tag(s):

digraph simple_hierarchy {
    a->b->c;
    b->d;
    a->e->f;
    e->g;
 

Hide edge

Tag(s):

digraph G
{
  // Hide edge using white color.
  a->b;

Label Alignment

Tag(s):

Label left justified

digraph G {
  label="a\nabc\nabcde";

Label extends outside of node

Tag(s):

Forcing text to extend outside of the node

digraph G {
  // Use fixedsize=true to fix the size of node.
  // Warning: The label will be cut if there is not enough space for the graph.

Separate Subgraphs

Tag(s):

Subgraph must starts with cluster.

Stack Record

Tag(s):

digraph StackingRecord 
{
  graph [
    label="Stacking Record",

Pages

Subscribe to RSS - dot