有没有办法为Doxygen中的GraphViz点指定配色方案?
默认方案不是很明亮,并且点从命令行制作图形时可以设置不同的方案。 doxygen将dot_fontname公开以将字体参数传递到点,但似乎没有配色方案?有人知道是否有自定义标签可以设置该标签,还是在GraphViz上设置默认方案的方法?
The default scheme isn't very bright and dots has different schemes that can be set when making graphs from the command-line. Doxygen exposes DOT_FONTNAME to pass a font argument to dots but doesn't seem to have that for the color scheme? Does anyone know if there is a custom tag to set that, or a way to set a default scheme on GraphViz?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 brewer yrewer配色方案以定义一种从您可以选择一个带有索引(1、2、3,...)的一个。
当您想更改调色板时,只需更改节点(或边缘或图形)的默认配色方案,然后将相应地更新图中所有节点的实际显示颜色。
此示例使用配色方案
set39
:>
colorscheme
第一个节点元素的属性(“默认”),您可以更改所有节点的颜色:You can use the Brewer colour schemes to define a "palette" of colours from which you can choose one with an index (1, 2, 3, ...).
When you want to change the palette, you just have to change the default colour scheme for nodes (or edge, or graph), the actual display colour of all nodes in the graph will then be updated accordingly.
This example uses colour scheme
set39
:By changing only the
colorscheme
property of the first node element (the "default"), you can change the colour of all nodes: