From 321240ea6231cbb4544cba37c363c215c0e8925f Mon Sep 17 00:00:00 2001 From: Martin Lackner Date: Tue, 17 Sep 2024 11:57:29 +0200 Subject: [PATCH] fix fontsize in plot for documentation --- abcvoting/generate.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/abcvoting/generate.py b/abcvoting/generate.py index 39e088d..bf75d05 100644 --- a/abcvoting/generate.py +++ b/abcvoting/generate.py @@ -842,8 +842,6 @@ class PointProbabilityDistribution: from abcvoting.generate import PointProbabilityDistribution import matplotlib.pyplot as plt - plt.rcParams.update({'font.size': 4}) - # distributions to generate points in 1- and 2-dimensional space distributions = [ PointProbabilityDistribution("1d_interval", center_point=[0]), @@ -855,7 +853,7 @@ class PointProbabilityDistribution: PointProbabilityDistribution("2d_gaussian_disc", center_point=[6, 2], sigma=0.25), ] - fig, ax = plt.subplots(dpi=600, figsize=(14, 6)) + fig, ax = plt.subplots(dpi=600, figsize=(7, 3)) points = [] for dist in distributions: if dist.name.startswith("2d"):