summaryrefslogtreecommitdiffstats
path: root/grapher/Graph.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-09-17 20:36:24 -0400
committerDave Brolley <brolley@redhat.com>2009-09-17 20:36:24 -0400
commit762684a57fa5420cc122b475f592545e8eeb29cd (patch)
treec1b55657f1aff31e7298d76852bbe8522a84db13 /grapher/Graph.cxx
parent8afee8bbf045e858dae186d40653293c99dbbcdd (diff)
parent6bde4f381475cea055352d8ad5f60bb2f24de21d (diff)
downloadsystemtap-steved-762684a57fa5420cc122b475f592545e8eeb29cd.tar.gz
systemtap-steved-762684a57fa5420cc122b475f592545e8eeb29cd.tar.xz
systemtap-steved-762684a57fa5420cc122b475f592545e8eeb29cd.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'grapher/Graph.cxx')
-rw-r--r--grapher/Graph.cxx6
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);
}