From: Emden Gansner Date: Thu, 14 Feb 2013 18:42:03 +0000 (-0500) Subject: Fix misspelling; add note on serially colored edges X-Git-Tag: LAST_LIBGRAPH~32^2~232 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd32418d40d7fd18d92f8e6f41e86600bcf1ff56;p=graphviz Fix misspelling; add note on serially colored edges --- diff --git a/doc/info/attrs.html b/doc/info/attrs.html index bca3689c5..6c180c646 100644 --- a/doc/info/attrs.html +++ b/doc/info/attrs.html @@ -646,15 +646,20 @@ This field indicates which graph component uses the attribute.

For edges, the value can either be a single color or a colorList. - In the latter case, the edge is drawn using parallel splines or lines, + In the latter case, if colorList has no fractions, + the edge is drawn using parallel splines or lines, one for each color in the list, in the order given. The head arrow, if any, is drawn using the first color in the list, and the tail arrow, if any, the second color. This supports the common case of drawing opposing edges, but using parallel splines instead of - separately routed multiedges. For example, the graph + separately routed multiedges. + If any fraction is used, the colors are drawn in series, with each color + being given roughly its specified fraction of the edge. + For example, the graph

   digraph G {
     a -> b [dir=both color="red:blue"]
+    c -> d [dir=none color="green:red;0.25:blue"]
   }
   
yields
@@ -946,7 +951,7 @@ This field indicates which graph component uses the attribute.
id
Allows the graph author to provide an id for graph objects which is to be included in the output. Normal "N", "E", "G" substitutions are applied. - If provided, it is the reponsiblity of the provider to keep + If provided, it is the responsiblity of the provider to keep its values sufficiently unique for its intended downstream use. Note, in particular, that "E" does not provide a unique id for multi-edges. If no id attribute is provided, then a unique internal id is used. However, diff --git a/doc/info/colorlist.gif b/doc/info/colorlist.gif index 6d39810b6..461e91ee2 100644 Binary files a/doc/info/colorlist.gif and b/doc/info/colorlist.gif differ diff --git a/doc/infosrc/attrs b/doc/infosrc/attrs index 2ddeef1db..206eb0b5e 100644 --- a/doc/infosrc/attrs +++ b/doc/infosrc/attrs @@ -163,15 +163,20 @@ Basic drawing color for graphics, not text. For the latter, use the

For edges, the value can either be a single color or a colorList. -In the latter case, the edge is drawn using parallel splines or lines, +In the latter case, if colorList has no fractions, +the edge is drawn using parallel splines or lines, one for each color in the list, in the order given. The head arrow, if any, is drawn using the first color in the list, and the tail arrow, if any, the second color. This supports the common case of drawing opposing edges, but using parallel splines instead of -separately routed multiedges. For example, the graph +separately routed multiedges. +If any fraction is used, the colors are drawn in series, with each color +being given roughly its specified fraction of the edge. +For example, the graph

 digraph G {
   a -> b [dir=both color="red:blue"]
+  c -> d [dir=none color="green:red;0.25:blue"]
 }
 
yields
@@ -423,7 +428,7 @@ Synonym for URL. :id:GNE:escString:""; map,ps,svg Allows the graph author to provide an id for graph objects which is to be included in the output. Normal "\N", "\E", "\G" substitutions are applied. -If provided, it is the reponsiblity of the provider to keep +If provided, it is the responsiblity of the provider to keep its values sufficiently unique for its intended downstream use. Note, in particular, that "\E" does not provide a unique id for multi-edges. If no id attribute is provided, then a unique internal id is used. However, diff --git a/doc/infosrc/colorlist.dot b/doc/infosrc/colorlist.dot index e4b8126bc..ff41e21cb 100644 --- a/doc/infosrc/colorlist.dot +++ b/doc/infosrc/colorlist.dot @@ -1,3 +1,4 @@ digraph G { a -> b [dir=both color="red:blue"] -} + c -> d [dir=none color="green:red;0.25:blue"] +}