Graphviz(02) 漢字subgraph不顯示漢字的處理

1.按照官方教程設置node

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"];
}
相關文章
相關標籤/搜索