diff options
Diffstat (limited to 'viz/draw.py')
-rw-r--r-- | viz/draw.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/viz/draw.py b/viz/draw.py index db246ec..c30ffe7 100644 --- a/viz/draw.py +++ b/viz/draw.py | |||
@@ -743,6 +743,7 @@ class Graph(object): | |||
743 | extra_width = cur_width | 743 | extra_width = cur_width |
744 | 744 | ||
745 | width += extra_width | 745 | width += extra_width |
746 | |||
746 | self.origin = (extra_width + GraphFormat.WIDTH_PAD / 2.0, height - GraphFormat.HEIGHT_PAD / 2.0) | 747 | self.origin = (extra_width + GraphFormat.WIDTH_PAD / 2.0, height - GraphFormat.HEIGHT_PAD / 2.0) |
747 | 748 | ||
748 | self.width = width | 749 | self.width = width |
@@ -762,6 +763,9 @@ class Graph(object): | |||
762 | def get_height(self): | 763 | def get_height(self): |
763 | return self.height | 764 | return self.height |
764 | 765 | ||
766 | def get_origin(self): | ||
767 | return self.origin | ||
768 | |||
765 | def get_attrs(self): | 769 | def get_attrs(self): |
766 | return self.attrs | 770 | return self.attrs |
767 | 771 | ||