Re: [graphviz-interest] labelloc broken?

[email protected] Sun, 01 Feb 2015 19:46:21 +0100
Newsgroups gmane.comp.video.graphviz
Message-ID <20150201194621.Horde.s4yA8zWRJi1hwfVkcZsxog7@webmail.stamm-wilbrandt.de>
Hi,

below diff works fine for me, I added a graph label because that is  
what the graph level labelloc is for. And I added labelloc=t for your  
node 10234 label.

$ diff Ron.dot.orig Ron.dot
4c4
< dpi="96" splines="false" rankdir="BT" fillcolor="#ffffff00" ]
---
> dpi="96" splines="false" rankdir="BT" fillcolor="#ffffff00" label="top"]
17c17
< "10234" [ width="1.375" height="1.375" ID="10234"   label="moved this"
---
> "10234" [ width="1.375" height="1.375" ID="10234"   label="moved  
> this" labelloc=t
$

Which is your version of dot?
My version is 2.26 on Linux.
"0" is an unknown shape in your input.

$ dot -Tpng Ron.dot >Ron.png
Warning: using box for unknown shape 0
Warning: node '10234', graph 'myGraph' size too small for label
$
$ dot -V
dot - graphviz version 2.26.0 (20091210.2329)
$


Hermann.

Quoting Ron Newman <[email protected]>:

> I put labelloc=t in the graph definition, yet labels come out at the bottom
> of subgraphs for bottom-to-top layout orientation.  Tried moving it into
> the subgraphs themselves, same result.
>
> I noticed this was a bug in 2009, has it reoccurred or is there an
> interaction with other options that I'm missing?
>
> I noticed this in both 2.36.0 (Ubuntu) and 2.38.0 (Windows), in both xdot
> and png output.  It's working in the online graphviz fiddle tool, though.
>
>
> Here's my test graph:
>
> digraph myGraph {
> graph [ labelloc=t compound="true" nodesep="0.7" concentrate="false"
> ranksep="1.0 equally" maxiter="500" overlap="prism"  truecolor="false"
> dpi="96" splines="false" rankdir="BT" fillcolor="#ffffff00" ]
> node [ margin="0.11,0.833" fixedsize="true" fillcolor="#F0E68C"
> style="filled" pencolor="#000000" fontname="Arial"  height="1.0"
> width="1.2"]
> edge [ penwidth="1.0" color="#000000" arrowhead="normal"]
>
> subgraph cluster10348 {
>  ID="10348";
>  style="filled";
>  fillcolor="#ffffffff";
>  label="group 1";
> node [fontcolor="#000000" style="filled" shape="0"  regular="false"
> fontsize="14" fillcolor="#89f499ff" ]
> "10234" [ width="1.375" height="1.375" ID="10234"   label="moved this"
> URL="#" tooltip="10234" ]
> }
>
> subgraph cluster10410 {
>  ID="10410";
>  style="filled";
>  fillcolor="#ffffffff";
>  label="Group";
> node [fontcolor="#000000" style="filled" shape="0"  regular="false"
> fontsize="14" fillcolor="#f0e68cff" ]
> "10411" [ width="1.375" height="1.375" ID="10411"   label="" URL="#"
> tooltip="10411" ]
> }
>
> subgraph cluster10413 {
>  ID="10413";
>  style="filled";
>  fillcolor="#ffffffff";
>  label="Group";
> node [fontcolor="#000000" style="filled" shape="0"  regular="false"
> fontsize="14" fillcolor="#f0e68cff" ]
> "10412" [ width="1.375" height="1.375" ID="10412"   label="" URL="#"
> tooltip="10412" ]
> }
> }
>
> --
> Ron Newman, Founder
> IdeaTreeLive.com <http://www.Ideatreelive.com>
> www.linkedin.com/in/ideatree/


_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest