From 2b433f3c2bd86e943094a39a6805d819f5ab6dce Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Thu, 25 Mar 2021 15:25:26 +0100 Subject: [PATCH] =?UTF-8?q?Matplotlib:=20Drobn=C3=A9=20opravy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 04-matplotlib/examples.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/04-matplotlib/examples.py b/04-matplotlib/examples.py index 556e4ac..87c5020 100644 --- a/04-matplotlib/examples.py +++ b/04-matplotlib/examples.py @@ -2,6 +2,9 @@ import numpy as np import matplotlib.pyplot as plt import math +# Základní velikost písma +plt.rcParams.update({'font.size': 22}) + # Triviální příklad: jedna křivka def example1(): x = np.linspace(0, 2, 100) @@ -57,7 +60,7 @@ def example7(): plt.fill_between(x, x**2, x**3) plt.show() -# Polární souřadnice: srdovka +# Polární souřadnice: srdcovka def example8(): phi = np.linspace(0, 2*math.pi, 100) r = 1 - np.cos(phi) @@ -143,4 +146,4 @@ def example14(): plt.show() -example1() \ No newline at end of file +# example1() -- GitLab