[Dot] Loose nodes bad position, ratio=compress, Graphs and subgraphs...
Ported Issue from Mantis Original ID: 2083 Reported By: Christophe Dupriez
SEVERITY: MINOR Submitted: 2011-04-14 18:45:16
OS: OTHER-WINDOWS-SERVER 2003
VERSION: 2.26.3
DESCRIPTION
For Web display of (often) big schemas,
I want to set a maximum width
(users do not scroll easily on the horizontal axis)
but no maximum height
(for a given width, I want the users to be able to scroll down as much as needed).
size="9,1000";
ratio=compress;
is mostly doing the job.
Except if you have a loose node! It goes down under (thousand inches down!).
and you end with an enormous image where you needed a lot less.
I messed some times to identify the problem and to find a solution.
I thought it would be good to share:
just enclose your whole graph in a cluster !
My suggestions: check the "loose node" positionning algorithm
so it does not try to take all the surface (at least with ratio=compress).
I put hereunder a small example: just remove the subgraph to see the problem.
Good luck and THANK YOU for this fantastic tool!
STEPS TO REPRODUCE
digraph G { label="Concept thSubstances_3001017 (displayed using ASKOSI.org)"; node [fontname="verdana" shape=box style=filled fillcolor=white]; fontname="Verdana"; rankdir=LR; ranksep=0.3; nodesep=0.15; ratio=compress; concentrate=true; size="8,500"; splines=ortho; stylesheet="/askosi/css/graf.css" subgraph cluster_main { label=""; bgcolor=grey91; thSubstances[shape=house, label="Substances",id="thSubstances" style=filled fillcolor=lightblue]; thSubstances_3020700->thSubstances_3001017; thSubstances_3001017->thSubstances_3029444; thSubstances_3001017->thSubstances_3029443; thSubstances_3001017->thSubstances_3029445; thSubstances_3020700[label="MERCAPTOETHYLAMINES",tooltip="thSubstances_3020700",id="thSubstances_3020700"]; thSubstances_3001017[label="CYSTEAMINE",style=filled,fillcolor=yellow,tooltip="thSubstances_3001017",id="thSubstances_3001017"]; thSubstances_3029444[label="CYSTEAMINE\nBITARTRATE",tooltip="thSubstances_3029444",id="thSubstances_3029444"]; thSubstances_3029443[label="CYSTEAMINE\nHYDROCHLORIDE",tooltip="thSubstances_3029443",id="thSubstances_3029443"]; thSubstances_3029445[label="PHOSPHOCYSTEAMINE",tooltip="thSubstances_3029445",id="thSubstances_3029445"]; } }