diff --git a/demo/graph_to_eps_demo.cc b/demo/graph_to_eps_demo.cc --- a/demo/graph_to_eps_demo.cc +++ b/demo/graph_to_eps_demo.cc @@ -199,7 +199,7 @@ copyright("(C) 2003-2007 LEMON Project"). coords(hcoords). absoluteNodeSizes().absoluteArcWidths(). - nodeScale(45). + nodeScale(.45). distantColorNodeTexts(). // distantBWNodeTexts(). nodeTexts(hcolors).nodeTextSize(.6). diff --git a/lemon/graph_to_eps.h b/lemon/graph_to_eps.h --- a/lemon/graph_to_eps.h +++ b/lemon/graph_to_eps.h @@ -150,10 +150,10 @@ DefaultGraphToEpsTraits(const G &_g,std::ostream& _os=std::cout, bool _pros=false) : g(_g), os(_os), - _coords(dim2::Point(1,1)), _nodeSizes(.01), _nodeShapes(0), + _coords(dim2::Point(1,1)), _nodeSizes(1), _nodeShapes(0), _nodeColors(WHITE), _arcColors(BLACK), _arcWidths(1.0), _arcWidthScale(0.003), - _nodeScale(1.0), _xBorder(10), _yBorder(10), _scale(1.0), + _nodeScale(.01), _xBorder(10), _yBorder(10), _scale(1.0), _nodeBorderQuotient(.1), _drawArrows(false), _arrowLength(1), _arrowWidth(0.3), _showNodes(true), _showArcs(true), @@ -496,7 +496,7 @@ /// equal to \c d. /// \sa nodeSizes() /// \sa autoNodeScale() - GraphToEps &nodeScale(double d) {_nodeScale=d;return *this;} + GraphToEps &nodeScale(double d=.01) {_nodeScale=d;return *this;} ///Turns on/off the automatic node width scaling. ///Turns on/off the automatic node width scaling. @@ -549,7 +549,7 @@ /// If both arcWidths() and autoArcWidthScale() are used, then the /// arc withs will be scaled in such a way that the greatest width will be /// equal to \c d. - GraphToEps &arcWidthScale(double d) {_arcWidthScale=d;return *this;} + GraphToEps &arcWidthScale(double d=.003) {_arcWidthScale=d;return *this;} ///Turns on/off the automatic arc width scaling. ///Turns on/off the automatic arc width scaling.