#!/usr/bin/env python
# -*- coding: utf8 -*-
# Soubor:  sitove-napeti.py
# Datum:   20.04.2011 20:05
# Autor:   Marek Nožka, nozka <@t> spseol <d.t> cz
# Licence: GNU/GPL 
# Úloha:  časový průběh síťového napětí
# 

import pylab as l

f = 50
Um = 230 * l.sqrt(2) # sqrt = odmocnina

t = l.linspace(18, 64, 200)

u = Um * l.sin(2*l.pi*f*t*1e-3)

l.plot(t,u)
l.grid(True)
l.xlabel('t[ms]')  # všimněte si, že čas je v ms
l.ylabel('u(t)[V]') 
l.text(20, 330, '$u(t)=sin(2\pi ft)$', {'fontsize' : 20})

l.show()


