Re: [graphviz-interest] Possible bug in dot

Ryan Schmidt <[email protected]>
Newsgroups gmane.comp.video.graphviz
Message-ID <[email protected]>
On Jul 12, 2013, at 19:13, Ron Savage wrote:
> On 13/07/13 02:00, Emden R. Gansner wrote:
>> On 7/12/13 12:29 AM, Ron Savage wrote:
>>> echo "digraph G { a->b }" | dot -Gsize=200,400
>>> 
>>> Outputs:
>>> 
>>> digraph G {
>>> graph [size="20,40"];
>>> node [label="\N"];
>>> graph [bb="0,0,54,108"];
>>> a [pos="27,90", width="0.75", height="0.5"];
>>> b [pos="27,18", width="0.75", height="0.5"];
>>> a -> b [pos="e,27,36.104 27,71.697 27,63.983 27,54.712 27,46.112"];
>>> }
>>> 
>>> but that bb and size should be the same.
>>> 
>>> I'm not familiar with bb, so I'll leave it for you to decide.
>>> 
>> The bb attribute gives the bounding box of image, in points.
>> The size attribute specifies the maximum size of the image, in inches.
>> As the input graph is small, the size attribute has no effect.
>> (Appending a '!' character to the size will cause the
>> output to be scaled uniformly to fit at least one of the size
>> dimensions. In this case, a small image will be scaled up.)
>> 
>> I assume either the graph [size="20,40"]; or -Gsize=200,400 is a
>> miscopy, as the numbers should be the same.
> 
> Nope. Exactly as output.

Just to let you know, I have:

$ dot -V
dot - graphviz version 2.31.20130706.0446 (20130706.0446)
$ echo "digraph G { a->b }" | dot -Gsize=200,400
digraph G {
	graph [bb="0,0,54,108",
		size="200,400"
	];
	node [label="\N"];
	a	 [height=0.5,
		pos="27,90",
		width=0.75];
	b	 [height=0.5,
		pos="27,18",
		width=0.75];
	a -> b	 [pos="e,27,36.104 27,71.697 27,63.983 27,54.712 27,46.112"];
}



_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.