Re: [graphviz-interest] Possible bug in dot

Ron Savage <[email protected]>
Newsgroups gmane.comp.video.graphviz
Message-ID <[email protected]>
Hi Emden

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.

I'll forward you reply to him.

Thanx.

> Also, as the size is in inches, 200,400 and even 20,40 seem a bit large.
>> Note: Our discussion started off with this entry in the Changes file,
>> when he tried to use viewport:
>>
>> February 23, 2004
>> ...
>> - add -Gviewport="X,Y,Z,x,y" where XY are the dimensions of a viewport
>> ...
>>
>> But, using V 2.30.1, 'man dot' does not show any reference to viewport.
>>
>> Was it removed at a later date but not noted in the Changes file?
> No, viewport is still available. Try as we might, the "paper"
> documentation gets out of date. We note at the bottom of
> the dot man page:
>
>> This man page contains only a small amount of the information related
>> to the Graphviz layout programs. The most
>> complete information can be found at
>> http://www.graphviz.org/Documentation.php, especially in the on-line ref-
>> erence pages.
> In general, the most reliable information on Graphviz can be found in
> the On-Line Reference Pages links.
>
> Emden
>

-- 
Ron Savage
http://savage.net.au/
Ph: 0421 920 622
_______________________________________________
[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.