Graph []切断了Mathematica中的顶点标签

Sza*_*lcs 5 graphics wolfram-mathematica mathematica-8

Graph[]有倾向于切断Mathematica中的顶点标签.我正在寻找一个强大的解决方法.

例:

Graph[{1 -> 2, 2 -> 3, 3 -> 1}, VertexLabels -> "Name"]
Run Code Online (Sandbox Code Playgroud)

Graph []切断标签'2'

我目前的解决方法:

SetOptions[Graph, ImagePadding -> 12]
Run Code Online (Sandbox Code Playgroud)

这不稳定,因为ImagePadding需要根据标签大小手动调整值.

Mr.*_*ard 2

显然,在对象FullGraphics上使用Graph将修复用于显示目的的剪裁,但会牺牲交互性。

根据下面的评论,Show[]也可以工作,并且避免修改图形。

  • 我不会使用它,因为 FullGraphics 会改变输出的许多方面。尝试,例如 `FullGraphics[ Graph[{1 -> 2, 2 -> 3, 3 -> 1}, VertexLabels -> "Name", PlotLabel -> "This is a test", BaseStyle -> {FontFamily -> “Arial-Bold”,FontSize -> 16}]]` 并将 `FullGraphics` 替换为 `Show`。 (2认同)