From be01d2e9cd074dee1a4e0c7dcf3ac22622c4fcac Mon Sep 17 00:00:00 2001 From: fruchti Date: Sat, 17 Dec 2022 23:11:39 +0100 Subject: [PATCH] Paper: Allow updating margins later --- lib/plot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/plot.py b/lib/plot.py index 13b0e51..f1fce47 100644 --- a/lib/plot.py +++ b/lib/plot.py @@ -14,6 +14,10 @@ class Paper: 'bottom': 0, 'left': 0 } + self.set_margins(margins) + + + def set_margins(self, margins): if isinstance(margins, int) or isinstance(margins, float): self.margins['top'] = margins self.margins['right'] = margins