2012-12-06 7 views
3

저는 Graphviz의 초보자입니다. 엔티티에 중심을 둔 트리를 그려야합니다 (twopi 명령을 사용하고 있습니다). 나는 그것이 많은 공간이 중첩 된 라벨을 아루 경우에도 중복 overlap=true을 넣으면twopi (Graphviz)의 간격 제어

  • .
  • overlap=false을 입력하면 레이블이 너무 작아집니다.

어떻게 겹치지 않고 첫 번째 상황을 만들 수 있습니까?

전체 코드 :

digraph g { 
    graph [ fontname = "Helvetica", 
     fontsize = 10, 
     size = "500,500", 
     splines=true, 
     overlap=false, 
     ratio=.5 ]; 
    node [ shape = plaintext, 
     fontname = "Helvetica" ]; 

    root="owl:Thing"; 
    "owl:Thing" -> "Work"; 
    "Work" -> "WrittenWork"; 
    "Work" -> "Software"; 
    "Work" -> "Website"; 
    "Work" -> "Film"; 
    "owl:Thing" -> "Agent"; 
    "Agent" -> "Organisation"; 
    "Organisation" -> "Non-ProfitOrganisation"; 
    "Organisation" -> "GeopoliticalOrganisation"; 
    "Organisation" -> "SambaSchool"; 
    "Agent" -> "Person"; 
    "Person" -> "Athlete"; 
    "Person" -> "OfficeHolder"; 
    "Person" -> "Astronaut"; 
    "Person" -> "Philosopher"; 
    "Person" -> "Architect"; 
    "owl:Thing" -> "Drug"; 
    "owl:Thing" -> "Place"; 
    "Place" -> "SiteOfSpecialScientificInterest"; 
    "Place" -> "PopulatedPlace"; 
    "PopulatedPlace" -> "Country"; 
    "PopulatedPlace" -> "Continent"; 
    "PopulatedPlace" -> "Atoll"; 
    "Place" -> "ProtectedArea"; 
    "Place" -> "ArchitecturalStructure"; 
    "Place" -> "HistoricPlace"; 
    "Place" -> "NaturalPlace"; 
    "NaturalPlace" -> "Mountain"; 
    "NaturalPlace" -> "Volcano"; 
    "NaturalPlace" -> "MountainRange"; 
} 

감사합니다,이 특정 그래프

알레

답변

5

, 당신은 overlap=true를 사용하고 어떤 레이블이 더 이상 중복되지 때까지 ranksep을 증가 할 수있다. ranksep=1.3은 좋은 가치입니다.

twopi output with ranksep applied