diff -r 416a7030b7e3 -r 0d7c0f96a5ee demo/graph_to_eps_demo.cc --- a/demo/graph_to_eps_demo.cc Fri Aug 11 14:55:33 2006 +0000 +++ b/demo/graph_to_eps_demo.cc Mon Aug 14 15:15:57 2006 +0000 @@ -42,6 +42,7 @@ int main() { Palette palette; + Palette paletteW(true); ListGraph g; typedef ListGraph::Node Node; @@ -80,12 +81,21 @@ IdMap id(g); + cout << "Create 'graph_to_eps_demo_out_pure.eps'" << endl; + graphToEps(g,"graph_to_eps_demo_out_pure.eps"). + //scale(10). + coords(coords). + title("Sample .eps figure"). + copyright("(C) 2006 LEMON Project"). + run(); + cout << "Create 'graph_to_eps_demo_out.eps'" << endl; graphToEps(g,"graph_to_eps_demo_out.eps"). //scale(10). coords(coords). title("Sample .eps figure"). copyright("(C) 2006 LEMON Project"). + absoluteNodeSizes().absoluteEdgeWidths(). nodeScale(2).nodeSizes(sizes). nodeShapes(shapes). nodeColors(composeMap(palette,colors)). @@ -100,6 +110,7 @@ //scale(10). title("Sample .eps figure (with arrowheads)"). copyright("(C) 2006 LEMON Project"). + absoluteNodeSizes().absoluteEdgeWidths(). nodeColors(composeMap(palette,colors)). coords(coords). nodeScale(2).nodeSizes(sizes). @@ -126,6 +137,7 @@ //scale(10). title("Sample .eps figure (parallel edges)"). copyright("(C) 2006 LEMON Project"). + absoluteNodeSizes().absoluteEdgeWidths(). nodeShapes(shapes). coords(coords). nodeScale(2).nodeSizes(sizes). @@ -141,6 +153,7 @@ //scale(10). title("Sample .eps figure (parallel edges and arrowheads)"). copyright("(C) 2006 LEMON Project"). + absoluteNodeSizes().absoluteEdgeWidths(). nodeScale(2).nodeSizes(sizes). coords(coords). nodeShapes(shapes). @@ -156,6 +169,7 @@ graphToEps(g,"graph_to_eps_demo_out_a4.eps").scaleToA4(). title("Sample .eps figure (fits to A4)"). copyright("(C) 2006 LEMON Project"). + absoluteNodeSizes().absoluteEdgeWidths(). nodeScale(2).nodeSizes(sizes). coords(coords). nodeShapes(shapes). @@ -172,7 +186,7 @@ ListGraph::NodeMap hcoords(h); int cols=int(sqrt(double(palette.size()))); - for(int i=0;i