如果我使用的是DOT&,如何通过graphviz更改所创建图形在HTML中的位置。氧气? [英] How can I change the position in my HTML of the created graph by graphviz if I am using DOT & doxygen?

查看:98
本文介绍了如果我使用的是DOT&,如何通过graphviz更改所创建图形在HTML中的位置。氧气?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在doxygen中使用点和Graphviz来创建HTML代码的用户手册。 doxygen代码看起来像这样:

I using dot and Graphviz in doxygen to create a user manual of my code in HTML. The doxygen code looks somewhat like this:

/**<br>
 *@addtogroup MainProgram 
 *     @dot
 *          digraph G { 
 *                      Main    [label = "Main()"];
 *                      START   [label = "Start"];
 *                      FINISH  [label = "Finish"];
 *
 *                      START -> Main;
 *                      Main  -> FINISH;
 *                    }
 *        
 *     @enddot
 */

这当然会生成一张漂亮的图片。不幸的是,图片没有以我想要的方式在HTML页面中显示。它始终位于页面中心。我希望对齐方式在页面的左侧。生成的HTML代码如下:

This of course generates a nice picture. Unfortunately, the picture is not displayed the way I want it in the HTML page. It is always centered on page. I want the alignment to be on the left side of the page. The generated HTML code looks like:

<div align="center">
<img src="inline_dotgraph_2.dot.gif" alt="inline_dotgraph_2.dot" border="0" usemap="#inline_dotgraph_2.dot.map">
<map name="inline_dotgraph_2.dot.map" id="inline_dotgraph_2.dot.map"></map>
</div>

有人可以帮助我吗?这是Doxygen问题或graphiz / dot问题。我似乎找不到答案。

Can anyone help me? It's either a doxygen problem or a graphiz/dot problem. I can't seem to find the answer.

谢谢

Maurice

推荐答案

您可以通过将doxygen配置文件中的CSS文件分配给 HTML_EXTRA_STYLESHEET 来自定义html布局:

You could customize the html layout by assign a CSS file to HTML_EXTRA_STYLESHEET in your doxygen configuration file:

HTML_EXTRA_STYLESHEET = myStyle.css

.image
{
   text-align: left;
}

这篇关于如果我使用的是DOT&amp;,如何通过graphviz更改所创建图形在HTML中的位置。氧气?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆