diff options
Diffstat (limited to 'grapher/Graph.cxx')
-rw-r--r-- | grapher/Graph.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/grapher/Graph.cxx b/grapher/Graph.cxx index ec5e4035..e1ea01f6 100644 --- a/grapher/Graph.cxx +++ b/grapher/Graph.cxx @@ -9,11 +9,13 @@ namespace systemtap using namespace std; using namespace std::tr1; - Graph::Graph() - : _lineWidth(2), _autoScaling(true), _autoScrolling(true), + Graph::Graph(double x, double y) + : _graphX(0), _graphY(0), + _lineWidth(2), _autoScaling(true), _autoScrolling(true), _zoomFactor(1.0), _playButton(new CairoPlayButton), _left(0.0), _right(1.0), _top(5.0), _bottom(0.0) { + setOrigin(x, y); } |