Re: [graphviz-interest] Too much white space?

John Ellson <[email protected]> Fri, 12 Dec 2014 10:11:52 -0500
Newsgroups gmane.comp.video.graphviz
Message-ID <[email protected]>
Paul,

You could combine the information and the image into single nodes by 
using a <table> in HTML-like labels.

     http://graphviz.org/content/node-shapes#html

Something like the attached

John



On 12/12/2014 05:22 AM, paul womack wrote:
> Emden R. Gansner wrote:
>> I assume you are concerned with horizontal spacing, as vertical 
>> spacing is as tight as it can be given the rank=same and edge 
>> constraints.
>
> You recommendations have very nearly given me the
> family trees of my dreams.
>
> The only remaining issue may be fundemental.
>
> Some of my nodes are quite large, since they consist of 3 lines
> of text (name, birth, death) and possible a portrait raster
> of the induividual.
>
> It appears (possibly for reasons of coding complexity) that dot's
> version of "nodesep" applies to the bottom of the higher
> node to the bottom of the lower node (assuming my rankdir of TB).
>
> This leads to the vertical size of the diagram being bigger than I 
> would prefer.
>
> Is dot capable of having 2 such nodes partially side-by-side?
>
> It is fairly obvious in the section "lower.jpg" that the nodes
> *could* fit in much less vertical space.
>
>  BugBear
>
>
>
> _______________________________________________
> [email protected]
> http://lists.research.att.com/mailman/listinfo/graphviz-interest

_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest
foo.png (image/png, 1.4 KB) - not displayed
bar.gv (text/vnd.graphviz, 251 B)
digraph {
	blob [shape=box margin=0 label=<
		<table cellpadding="0" border="0">
			<tr>
				<td>Foo</td>
				<td rowspan="3"><img src="foo.png"/></td>
			</tr>
			<tr>
				<td>12/12/2014</td>
			</tr>
			<tr>
				<td>-</td>
			</tr>
		</table>
	>]
}
bar.png (image/png, 3.3 KB) - not displayed