diff -r 358526a620f8 -r c0f4ebdc0034 src/lemon/graph_to_eps.h --- a/src/lemon/graph_to_eps.h Wed Jan 19 12:17:11 2005 +0000 +++ b/src/lemon/graph_to_eps.h Wed Jan 19 20:19:31 2005 +0000 @@ -458,20 +458,14 @@ << " 2 index 2 index 2 index sub lineto\n" << " closepath pop pop pop} bind def\n"; // x y r cr cg cb - os << "/nc { setrgbcolor 2 index 2 index 2 index c fill\n" - << " 0 0 0 setrgbcolor dup " - << _nodeBorderQuotient << " mul setlinewidth " - << 1+_nodeBorderQuotient/2 << " div c stroke\n" + os << "/nc { 0 0 0 setrgbcolor 5 index 5 index 5 index c fill\n" + << " setrgbcolor " << 1+_nodeBorderQuotient << " div c fill\n" << " } bind def\n"; - os << "/nsq { setrgbcolor 2 index 2 index 2 index sq fill\n" - << " 0 0 0 setrgbcolor dup " - << _nodeBorderQuotient << " mul setlinewidth " - << 1+_nodeBorderQuotient/2 << " div sq stroke\n" + os << "/nsq { 0 0 0 setrgbcolor 5 index 5 index 5 index sq fill\n" + << " setrgbcolor " << 1+_nodeBorderQuotient << " div sq fill\n" << " } bind def\n"; - os << "/ndi { setrgbcolor 2 index 2 index 2 index di fill\n" - << " 0 0 0 setrgbcolor dup " - << _nodeBorderQuotient << " mul setlinewidth " - << 1+_nodeBorderQuotient/2 << " div di stroke\n" + os << "/ndi { 0 0 0 setrgbcolor 5 index 5 index 5 index di fill\n" + << " setrgbcolor " << 1+_nodeBorderQuotient << " div di fill\n" << " } bind def\n"; os << "/arrl " << _arrowLength << " def\n"; os << "/arrw " << _arrowWidth << " def\n"; @@ -566,7 +560,7 @@ << bez.p3.x << ' ' << bez.p3.y << ' ' << bez.p4.x << ' ' << bez.p4.y << " curveto stroke\n"; xy dd(rot(linend-apoint)); - dd*=(_edgeWidths[*e]*_edgeWidthScale+_arrowWidth)/ + dd*=(.5*_edgeWidths[*e]*_edgeWidthScale+_arrowWidth)/ sqrt(dd.normSquare()); os << "newpath " << psOut(apoint) << " moveto " << psOut(linend+dd) << " lineto "