Skip to content
Snippets Groups Projects
Commit 2b433f3c authored by Martin Mareš's avatar Martin Mareš
Browse files

Matplotlib: Drobné opravy

parent 9561a8e1
No related branches found
No related tags found
No related merge requests found
......@@ -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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment