From 8ece98121d87a367dcff410d067efbc6cf52a2a2 Mon Sep 17 00:00:00 2001 From: raj_mathe Date: Thu, 20 Oct 2022 22:15:58 +0200 Subject: [PATCH] master > master: src - Formatierung von Plots --- src/maths/diagrams/sets.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/maths/diagrams/sets.py b/src/maths/diagrams/sets.py index a92546a..191e91d 100644 --- a/src/maths/diagrams/sets.py +++ b/src/maths/diagrams/sets.py @@ -30,7 +30,8 @@ T2 = TypeVar('T2'); SCALE = (1., 4.); OFFSET = (3., 0.); -MARGIN = 0.1; +HMARGIN = 0.1; +VMARGIN = 0.2; N_RESOLUTION = 100; ANNOTATE_OFFSET = (0, 10); FONTSIZE_PTS = 10; @@ -84,9 +85,10 @@ class Functions: 'horizontalalignment': 'center', 'color': 'forestgreen', }); + axs.set_facecolor((0.9,0.9,0.9)) mplot.xlabel(''); mplot.ylabel(''); - mplot.margins(x=MARGIN, y=MARGIN); + mplot.margins(x=HMARGIN, y=VMARGIN); origin = np.asarray((0., 0.)); offset = np.asarray(OFFSET);