- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我生成以下带有点的PDF:
我的主要问题是即使打印在 A3 上,字符也太小了。此外,该图似乎可以做得更紧凑。例如。宽度因左上角蓝色、绿色和棕色节点的存在而扩展,但我看不出为什么整个前两行不能向右移动,导致至少减少 20%宽度。我在末尾附加了 .gv 文件。
由于我自动生成了 .gv 文件,所以我只能修改图级属性或所有节点和边的属性或更改 dot 调用,但我不能t 微调坐标或特定节点。
您是否看到任何明显的方法可以获得更紧凑的布局以允许更大的字符大小?
我使用的调用是:
dot -Gsize="16.52,11.68" -Gratio="fill" -Glandscape=false -Gsplines=ortho -Tpdf graph.gv -o graph.gv.pdf
digraph G {
node [
fontname="Times-Bold"
]
concentrate=true
"schemas/toolkit.xsd" [
shape = "record"
style="bold, filled"
fillcolor="cyan"
label = "{toolkit.xsd|vt.edu|OAI/metadata/toolkit}"
]
"schemas/simpledc20021212.xsd" [
shape = "record"
style="bold, filled"
fillcolor="salmon3"
label = "{simpledc20021212.xsd|other domain|http://purl.org/dc/elements/1.1/}"
]
"schemas/stc-v1.30.xsd" [
shape = "record"
style="bold, filled"
fillcolor="lightskyblue"
label = "{stc-v1.30.xsd|ivoa|STC/stc-v1.30.xsd}"
]
"schemas/oai_dc.xsd" [
shape = "record"
style="bold, filled"
fillcolor="limegreen"
label = "{oai_dc.xsd|openarchives|OAI/2.0/oai_dc/}"
]
"schemas/VOApplication.xsd" [
shape = "record"
style="bold, filled"
fillcolor="lightskyblue"
label = "{VOApplication.xsd|ivoa|VOApplication/v1.0rc1}"
]
"schemas/xml.xsd" [
shape = "record"
style="bold, filled"
fillcolor="violetred1"
label = "{xml.xsd|w3.org|XML/1998/namespace}"
]
"schemas/xlink.xsd" [
shape = "record"
style="bold, filled"
fillcolor="violetred1"
label = "{xlink.xsd|w3.org|1999/xlink}"
]
"schemas/OpenSkyNode-v0.2.xsd" [
shape = "record"
style="bold, filled"
fillcolor="lightskyblue"
label = "{OpenSkyNode-v0.2.xsd|ivoa|SkyNode/v0.2}"
]
"schemas/VORegistry-v1.0.xsd" [
shape = "record"
style="bold, filled"
fillcolor="lightskyblue"
label = "{VORegistry-v1.0.xsd|ivoa|VORegistry/v1.0}"
]
"schemas/VOResource-v1.0.xsd" [
shape = "record"
style="bold, filled"
fillcolor="lightskyblue"
label = "{VOResource-v1.0.xsd|ivoa|VOResource/v1.0}"
]
"schemas/ConeSearch-v1.0.xsd" [
shape = "record"
style="bold, filled"
fillcolor="lightskyblue"
label = "{ConeSearch-v1.0.xsd|ivoa|ConeSearch/v1.0}"
]
"schemas/CEAService.xsd" [
shape = "record"
style="bold, filled"
fillcolor="lightskyblue"
label = "{CEAService.xsd|ivoa|CEA/v1.0rc1}"
]
"schemas/VOTable.xsd" [
shape = "record"
style="bold, filled"
fillcolor="lightskyblue"
label = "{VOTable.xsd|ivoa|VOTable/v1.1}"
]
"schemas/CEABase.xsd" [
shape = "record"
style="bold, filled"
fillcolor="lightskyblue"
label = "{CEABase.xsd|ivoa|CEA/base/v1.0rc1}"
]
"schemas/STAP.xsd" [
shape = "record"
style="bold, filled"
fillcolor="yellow"
label = "{STAP.xsd|astrogrid urn|STAP:v1.0}"
]
"schemas/VODataService-v1.0.xsd" [
shape = "record"
style="bold, filled"
fillcolor="lightskyblue"
label = "{VODataService-v1.0.xsd|ivoa|VODataService/v1.0}"
]
"schemas/SIA-v1.0.xsd" [
shape = "record"
style="bold, filled"
fillcolor="lightskyblue"
label = "{SIA-v1.0.xsd|ivoa|SIA/v1.0}"
]
"schemas/SSA-v0.4.xsd" [
shape = "record"
style="bold, filled"
fillcolor="lightskyblue"
label = "{SSA-v0.4.xsd|ivoa|SSA/v0.4}"
]
"schemas/RegistryInterface-v1.0.xsd" [
shape = "record"
style="bold, filled"
fillcolor="lightskyblue"
label = "{RegistryInterface-v1.0.xsd|ivoa|RegistryInterface/v1.0}"
]
"schemas/SSA-v1.0.xsd" [
shape = "record"
style="bold, filled"
fillcolor="lightskyblue"
label = "{SSA-v1.0.xsd|ivoa|SSA/v1.0}"
]
"schemas/TAPRegExt-v1.0.xsd" [
shape = "record"
style="bold, filled"
fillcolor="lightskyblue"
label = "{TAPRegExt-v1.0.xsd|ivoa|TAPRegExt/v1.0}"
]
"NFhttp://www.ivoa.net/xml/VOMetadata/v0.1" [
shape = "record"
color = "magenta1"
fillcolor = "lemonchiffon1"
style="bold, dashed, rounded, filled"
label = "{ivoa|VOMetadata/v0.1}"
]
"NFhttp://www.w3.org/2001/XMLSchema-instance" [
shape = "record"
color = "magenta1"
fillcolor = "lemonchiffon1"
style="bold, dashed, rounded, filled"
label = "{w3.org|2001/XMLSchema-instance}"
]
"schemas/stc-v1.30.xsd" -> "schemas/xlink.xsd" [color="blue"]
"schemas/oai_dc.xsd" -> "schemas/simpledc20021212.xsd" [color="blue"]
"schemas/VOApplication.xsd" -> "schemas/VOResource-v1.0.xsd" [color="blue"]
"schemas/VOApplication.xsd" -> "NFhttp://www.ivoa.net/xml/VOMetadata/v0.1" [color="blue"]
"schemas/OpenSkyNode-v0.2.xsd" -> "schemas/VOResource-v1.0.xsd" [color="blue"]
"schemas/OpenSkyNode-v0.2.xsd" -> "schemas/VODataService-v1.0.xsd" [color="blue"]
"schemas/OpenSkyNode-v0.2.xsd" -> "NFhttp://www.ivoa.net/xml/VOMetadata/v0.1" [color="blue"]
"schemas/VORegistry-v1.0.xsd" -> "schemas/VOResource-v1.0.xsd" [color="blue"]
"schemas/VORegistry-v1.0.xsd" -> "NFhttp://www.ivoa.net/xml/VOMetadata/v0.1" [color="blue"]
"schemas/VOResource-v1.0.xsd" -> "NFhttp://www.ivoa.net/xml/VOMetadata/v0.1" [color="blue"]
"schemas/ConeSearch-v1.0.xsd" -> "schemas/VOResource-v1.0.xsd" [color="blue"]
"schemas/ConeSearch-v1.0.xsd" -> "NFhttp://www.ivoa.net/xml/VOMetadata/v0.1" [color="blue"]
"schemas/CEAService.xsd" -> "schemas/VOTable.xsd" [color="blue"]
"schemas/CEAService.xsd" -> "schemas/VODataService-v1.0.xsd" [color="blue"]
"schemas/CEAService.xsd" -> "schemas/VOResource-v1.0.xsd" [color="blue"]
"schemas/CEAService.xsd" -> "NFhttp://www.ivoa.net/xml/VOMetadata/v0.1" [color="blue"]
"schemas/CEAService.xsd" -> "schemas/CEABase.xsd" [color="blue"]
"schemas/CEAService.xsd" -> "schemas/VOApplication.xsd" [color="blue"]
"schemas/CEABase.xsd" -> "schemas/VODataService-v1.0.xsd" [color="blue"]
"schemas/STAP.xsd" -> "schemas/VOResource-v1.0.xsd" [color="blue"]
"schemas/VODataService-v1.0.xsd" -> "schemas/VOResource-v1.0.xsd" [color="blue"]
"schemas/VODataService-v1.0.xsd" -> "schemas/stc-v1.30.xsd" [color="blue"]
"schemas/VODataService-v1.0.xsd" -> "NFhttp://www.ivoa.net/xml/VOMetadata/v0.1" [color="blue"]
"schemas/SIA-v1.0.xsd" -> "schemas/VOResource-v1.0.xsd" [color="blue"]
"schemas/SIA-v1.0.xsd" -> "schemas/VODataService-v1.0.xsd" [color="blue"]
"schemas/SIA-v1.0.xsd" -> "NFhttp://www.ivoa.net/xml/VOMetadata/v0.1" [color="blue"]
"schemas/SSA-v0.4.xsd" -> "schemas/VOResource-v1.0.xsd" [color="blue"]
"schemas/SSA-v0.4.xsd" -> "schemas/VODataService-v1.0.xsd" [color="blue"]
"schemas/SSA-v0.4.xsd" -> "NFhttp://www.ivoa.net/xml/VOMetadata/v0.1" [color="blue"]
"schemas/RegistryInterface-v1.0.xsd" -> "schemas/VOResource-v1.0.xsd" [color="blue"]
"schemas/SSA-v1.0.xsd" -> "schemas/VOResource-v1.0.xsd" [color="blue"]
"schemas/SSA-v1.0.xsd" -> "NFhttp://www.ivoa.net/xml/VOMetadata/v0.1" [color="blue"]
"schemas/TAPRegExt-v1.0.xsd" -> "schemas/VOResource-v1.0.xsd" [color="blue"]
"schemas/TAPRegExt-v1.0.xsd" -> "NFhttp://www.ivoa.net/xml/VOMetadata/v0.1" [color="blue"]
"schemas/TAPRegExt-v1.0.xsd" -> "NFhttp://www.w3.org/2001/XMLSchema-instance" [color="blue"]
}
最佳答案
unflatten
实用程序可以导致更紧凑的图形。
尝试以下命令行:
unflatten -f -l 2 graph.gv | dot -Gsize="16.52,11.68" -Gratio="fill" -Glandscape=false -Gsplines=ortho -Tpdf -o graph.gv.pdf
根据您自动生成的各种图形,unflatten 的其他一些值可能更适合覆盖所有图形。
关于graphviz - dot/Graphviz 更紧凑的层次布局,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17150667/
我正在使用 XCode 中的 SwiftUI 为 iPhone 编写应用程序。 在其中一个 View 中,有一个 Text 标签,每当按下按钮时都会更改其文本。 整个 View 是 Spring 动画
我有一个功能可以在生成报告时在弹出窗口中显示点点点。我想显示文本: 正在生成报告。生成报告..正在生成报告... ...重复,直到报告准备好。到目前为止,我只能在弹出窗口中获取三个点,而无法获取其他文
是否可以从 ... 中删除元素并将 ... 传递给其他函数?我的前两次尝试失败了: parent = function(...) { a = list(...) str(a) a$t
很难说出这里要问什么。这个问题模棱两可、含糊不清、不完整、过于宽泛或夸夸其谈,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开,visit the help center . 关闭 1
http://pastebin.com/index/9M2rA8cx那有我所有的代码。 您会注意到这两个 div 在 large.css 中居中。但是,文本在每个“。”之后重新居中。被申请;被应用。如
特殊文件 . 和 .. 是否实际存在并作为普通文件存储/位于文件系统中,或者它们是否仅在访问时解释/创建文件系统处理程序? .(当前目录) ..(父目录) 我的假设是它们不存在——否则,当您创建符号链
我想用...指示我想从 data.table 的自定义函数返回的变量目的。这是一个最小的可复制示例: library(data.table) d = data.table(mtcars) getvar
我想允许用户输入以下十进制或整数值 (A) .5 0.500 3 0 0.0 30 500000 4000.22 0. 这是我使用的以下正则表达式: factor: /^-?\d*[.]??\d*$/
我似乎明白 TLD 后的点无关紧要,例如: http://example.com/somepage/ == http://example.com./somepage/ (注意 TLD 后面的点) 我的
我试图用这个 DOT 输入文件创建一个简单的循环图: digraph { rankdir=LR; node0 [label = "0", group="bottom"]; n
我的问题与 this one 基本相同但给出的答案对我不起作用。 这是一个示例渲染 (source)和 compound=true; overlap=scalexy; splines=true; la
我正在尝试为作业问题制作一个点脚本生成器,它进行得很顺利,但我遇到了这个问题,其中一些未在子图中定义的节点被放置在其中。例如以下点脚本: digraph dg { compound=true;
我写了下面的 DOT 来生成图表。除了定义和布置的节点外,我想在标记为 L 的边缘的左侧和右侧放置一个节点,它们应该靠近 L,并且在 NODE3 和 NODE6 之间。 我尝试了一些不可见的节点。新节
我正在使用 python 和 matplotlib 来生成图形输出。 有没有一种简单的方法来生成点划线样式? 我知道 '--'、'-.' 和 ':' 选项。不幸的是,'-..' 不会产生点划线。 我查
给定以下字符串: "foo.bar.baz" 使用 Java String split 可以很容易地在“点”上分割它: split("foo.bar.baz", "\.") 但是,如果我想保留该点(如
有区别吗 import numpy as np np.dot(a,b) 和 a.dot(b) 内部?我找不到关于后一种方法的任何文档。 最佳答案 如果a 是一个数组,它们是等价的。您找不到关于 dot
有区别吗?如果不是,按惯例首选什么?性能似乎几乎相同。 a=np.random.rand(1000,1000) b=np.random.rand(1000,1000) %timeit a.dot(b)
如何使用 gvpr 将 DOT 语言中包含多个图形的文件拆分为多个 DOT 文件? 输入(1 个文件): # single.dot digraph one { a -> b; } digraph
RecursiveDirectoryIterator 似乎从本地主机和实时服务器给我两个不同的结果, define ('WEBSITE_DOCROOT', str_replace('\\', '/',
我有这样的例子: "hello . world . thanks ." 我想得到这个: "hello. world. thanks." 我试过了 text = text.replaceAll(" ."
我是一名优秀的程序员,十分优秀!