From 1206872e92745aa910baa632d57b16a23de7bd3d Mon Sep 17 00:00:00 2001 From: fruchti Date: Sun, 17 Dec 2023 14:09:20 +0100 Subject: [PATCH] Fix swapped top and bottom --- lib/plot.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/plot.py b/lib/plot.py index 8117aff..db44e8d 100644 --- a/lib/plot.py +++ b/lib/plot.py @@ -75,30 +75,30 @@ class Paper: def top_left(self, honour_margins=True): if honour_margins: return np.array([self.margins['left'], - self.height - self.margins['top']]) + self.margins['top']]) else: - return np.array([0, self.height]) + return np.array([0, 0]) def bottom_left(self, honour_margins=True): if honour_margins: return np.array([self.margins['left'], - self.margins['bottom']]) + self.height - self.margins['bottom']]) else: - return np.array([0, 0]) + return np.array([0, self.height]) def top_right(self, honour_margins=True): if honour_margins: return np.array([self.width - self.margins['right'], - self.height - self.margins['top']]) + self.margins['top']]) else: - return np.array([self.width, self.height]) + return np.array([self.width, 0]) def bottom_right(self, honour_margins=True): if honour_margins: return np.array([self.width - self.margins['right'], - self.margins['bottom']]) + self.height - self.margins['bottom']]) else: - return np.array([self.width, 0]) + return np.array([self.width, self.height]) def centre(self, honour_margins=True): return (self.bottom_left(honour_margins)