【问题标题】:How can I change the cluster color using gvmap?如何使用 gvmap 更改集群颜色?
【发布时间】:2014-09-23 21:35:43
【问题描述】:

我在下面有一个 .dot 文件。我可以使用此命令“sfdp -Goverlap=prism INPUT.gv | gvmap -e |neato -n2 -Ecolor=#55555522 -Tpng > OUTPUT.png”绘制地图可视化。

 graph {
  "0" [cluster="3", label="Drawing", pos="26.163,130.97"];                        
  "1" [cluster="3", label="Visualization", pos="270.82,243.14"];           
  "2" [cluster="2", label="Graph", pos="271.43,16.263"];        
  "3" [cluster="2", label="Arizona", pos="670.15,16.263"];        
  "4" [cluster="2", label="University", pos="415.11,16.263"];          
  "5" [cluster="1", label="Map", pos="513.44,131.26"];   
  "0" -- "1";    
  "1" -- "2";  
  "0" -- "2";   
  "3" -- "4";      
  "5" -- "1";  
  "5" -- "2";  
}

GraphViz 背后的算法为我的集群分配颜色。所以输出是如下图。

如何将我自己的颜色而不是算法使用的颜色分配给集群?

谢谢

【问题讨论】:

    标签: graphics graph visualization graph-visualization information-visualization


    【解决方案1】:

    是和不是。基于此:https://docs.oracle.com/cd/E36784_01/html/E36870/gvmap-1.html,

    您可以将此修饰符添加到您在 gvmap 部分中使用的命令中以创建图形: -c k 整数 k 指定用于着色的颜色方案 国家。默认情况下 k = 1。

        Acceptable values are:
             0 : no polygons
             1 : pastel
             2 : blue to yellow
             3 : white to red
             4 : light grey to red
             5 : primary colors
             6 : sequential single hue red
             7 : sequential single hue lighter red
             8 : light grey
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-11-03
      • 2020-11-01
      • 1970-01-01
      • 2016-12-17
      • 1970-01-01
      • 2017-11-29
      • 2019-04-28
      相关资源
      最近更新 更多