Graphviz(02) 汉字subgraph不显示汉字的处理

1.按照官方教程设置

2.如果还不显示,在不显示的汉字前面加上一个“空格”,汉字就会正常显示。

digraph idp_modules{

  rankdir = TB;
  fontname = "Microsoft YaHei";
  fontsize = 12;
  
  node [ fontname = "Microsoft YaHei", fontsize = 12, shape = "record" ];
  edge [ fontname = "Microsoft YaHei", fontsize = 12 ];
  
      subgraph cluster_sl{
          label="IDP支持层";
          bgcolor="mintcream";
          node [shape="Mrecord", color="skyblue", style="filled"];
          network_mgr [label=" 网络管理器"];
          log_mgr [label=" 日志管理器"];
          module_mgr [label=" 模块管理器"];
          conf_mgr [label=" 配置管理器"];
          db_mgr [label=" 数据库管理器"];
      };
  
      subgraph cluster_md{
          label="可插拔模块集";
          bgcolor="lightcyan";
          node [color="chartreuse2", style="filled"];
          mod_dev [label=" 开发支持模块"];
          mod_dm [label=" 数据建模模块"];
          mod_dp [label=" 部署发布模块"];
      };
  
  mod_dp -> mod_dev [label="依赖..."];
  mod_dp -> mod_dm [label="依赖..."];
  mod_dp -> module_mgr [label="安装...", color="yellowgreen", arrowhead="none"];
  mod_dev -> mod_dm [label="依赖..."];
  mod_dev -> module_mgr [label="安装...", color="yellowgreen", arrowhead="none"];
  mod_dm -> module_mgr [label="安装...", color="yellowgreen", arrowhead="none"];
}

 

 
posted @ 2019-06-07 08:42  I'm CY  阅读(463)  评论(0编辑  收藏  举报