Changeset 2178:0d7c0f96a5ee in lemon-0.x for demo/graph_to_eps_demo.cc
- Timestamp:
- 08/14/06 17:15:57 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2894
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
demo/graph_to_eps_demo.cc
r2172 r2178 43 43 { 44 44 Palette palette; 45 Palette paletteW(true); 45 46 46 47 ListGraph g; … … 81 82 IdMap<ListGraph,Node> id(g); 82 83 84 cout << "Create 'graph_to_eps_demo_out_pure.eps'" << endl; 85 graphToEps(g,"graph_to_eps_demo_out_pure.eps"). 86 //scale(10). 87 coords(coords). 88 title("Sample .eps figure"). 89 copyright("(C) 2006 LEMON Project"). 90 run(); 91 83 92 cout << "Create 'graph_to_eps_demo_out.eps'" << endl; 84 93 graphToEps(g,"graph_to_eps_demo_out.eps"). … … 87 96 title("Sample .eps figure"). 88 97 copyright("(C) 2006 LEMON Project"). 98 absoluteNodeSizes().absoluteEdgeWidths(). 89 99 nodeScale(2).nodeSizes(sizes). 90 100 nodeShapes(shapes). … … 101 111 title("Sample .eps figure (with arrowheads)"). 102 112 copyright("(C) 2006 LEMON Project"). 113 absoluteNodeSizes().absoluteEdgeWidths(). 103 114 nodeColors(composeMap(palette,colors)). 104 115 coords(coords). … … 127 138 title("Sample .eps figure (parallel edges)"). 128 139 copyright("(C) 2006 LEMON Project"). 140 absoluteNodeSizes().absoluteEdgeWidths(). 129 141 nodeShapes(shapes). 130 142 coords(coords). … … 142 154 title("Sample .eps figure (parallel edges and arrowheads)"). 143 155 copyright("(C) 2006 LEMON Project"). 156 absoluteNodeSizes().absoluteEdgeWidths(). 144 157 nodeScale(2).nodeSizes(sizes). 145 158 coords(coords). … … 157 170 title("Sample .eps figure (fits to A4)"). 158 171 copyright("(C) 2006 LEMON Project"). 172 absoluteNodeSizes().absoluteEdgeWidths(). 159 173 nodeScale(2).nodeSizes(sizes). 160 174 coords(coords). … … 173 187 174 188 int cols=int(sqrt(double(palette.size()))); 175 for(int i=0;i<int(palette .size());i++) {189 for(int i=0;i<int(paletteW.size());i++) { 176 190 Node n=h.addNode(); 177 191 hcoords[n]=Xy(i%cols,i/cols); … … 185 199 copyright("(C) 2006 LEMON Project"). 186 200 coords(hcoords). 187 nodeScale(.45). 201 absoluteNodeSizes().absoluteEdgeWidths(). 202 nodeScale(45). 188 203 distantColorNodeTexts(). 189 204 // distantBWNodeTexts(). 190 205 nodeTexts(hcolors).nodeTextSize(.6). 191 nodeColors(composeMap(palette,hcolors)). 192 run(); 193 194 206 nodeColors(composeMap(paletteW,hcolors)). 207 run(); 195 208 }
Note: See TracChangeset
for help on using the changeset viewer.