n_7 [label="c" style="setlinewidth(1)" ] cluster_1 -> n_7 [] } subgraph cluster_4 { cluster_2 [] cluster_3 [] n_10 [label="f" style="setlinewidth(1)" ] cluster_2 -> cluster_3 [] cluster_3 -> n_10 [] } } """ if "-help" in sys.argv or "--help" in sys.argv: print(helpMSG) exit() keylist = [ "type,k,ni,nf,nv,nc,ei,ef,ev,ec,o,nl,el,ed,nw", "d,clusterLabel,noiso,normalize,normalizeEdge,normalizeNode" ] convkey = {"type": "tp"} kwd = nu.margv2dict(sys.argv, keylist, "ei,ef", convkey) footer = os.path.basename(sys.argv[0]) + " " + " ".join(sys.argv[1:]) nvgv.mgv(**kwd) nu.mmsg.endLog(footer)
書式) #{$cmd} ni= ei= ef= nf= [nodeSizeFld=] [nodeColorFld=] [edgeWidthFld=] [edgeColorFld=] pieDataFld= pieTipsFld= picFld= o= -undirect circle pieChart 画像 をNodeとして利用可能 """ if "-help" in sys.argv or "--help" in sys.argv: print(helpMSG) exit() keylist=[ ["ei","ni","ef","nf","o", "nodeSizeFld","pieDataFld","pieTipsFld", "nodeTipsFld","picFld","nodeColorFld", "edgeWidthFld","edgeColorFld"], ["undirect","offline"] ] nparalist=[ "ei","ni","ef","nf","o" ] kwd = nu.margv2dict(sys.argv,keylist,nparalist) footer = os.path.basename(sys.argv[0]) + " " + " ".join(sys.argv[1:]) nnpie.mnetpie(**kwd) nu.mmsg.endLog(footer)
男性,40,UFJ,3 男性,40,梅屋敷,10 男性,50,デズニ,110 男性,50,UFJ,40 女性,30,梅屋敷,100 女性,30,デズニ,80 女性,30,UFJ,200 女性,40,デズニ,90 女性,40,UFJ,80 女性,40,梅屋敷,120 女性,50,デズニ,99 女性,50,UFJ,80 女性,50,梅屋敷,110 $ #{$cmd} i=dat3.csv k=Gender,Age v=Number f=テーマパーク名 o=result3.html title=性別と年代ごとのテーマパーク訪問回 """ if "-help" in sys.argv or "--help" in sys.argv: print(helpMSG) exit() keylist = ["i,o,title,cc,pr,k,f,v", ""] kwd = nu.margv2dict(sys.argv, keylist, "i,f,v,o") footer = os.path.basename(sys.argv[0]) + " " + " ".join(sys.argv[1:]) kwd["footer"] = footer nvpie.mpie(**kwd) nu.mmsg.endLog(footer)
03,C,11,bf003f 04,D,29,2f00cf 05,B,32,1700e7 06,A,, 07,C,9,cf002f 08,D,3,ff0000 09,B,11,bf003f 10,E,22,670097 11,,21,6f008f 12,C,35,0000ff """ ############# # entry point if "-help" in sys.argv or "--help" in sys.argv: print(helpMSG) exit() keylist = ["f,color,order,transmit,a,i,o", ""] convkey = {"i": "iFile", "o": "oFile", "f": "fld", "a": "aFld"} kwd = nu.margv2dict(sys.argv, keylist, "iFile,fld,aFld", convkey) footer = os.path.basename(sys.argv[0]) + " " + " ".join(sys.argv[1:]) # =================================================================== # パラメータ処理 nvgv.mautocolor(**kwd) # 終了メッセージ nu.mmsg.endLog(footer)