#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 27 19:47:58 2017

@author: jaques
"""

def f():
    print('Alô')

    
if __name__=='__main__':  #se usar shell '$ python teste.py', então o script teste.py é o 'main'
    f()                   #então chama f()

#---------------------------------------------------
import numpy as np
import scipy.interpolate
import matplotlib as mpl
import matplotlib.pyplot as plt
x=np.arange(1,3.14+0.05,0.05) #cria um vetor com valores de 1 até 3.14 com passo 0.05
y=np.sin(x)
plt.plot(x,y)
#-------------------------------
x=np.linspace(0,1,100) #cria um vetor com 100 células com valores de 0 até 1
z=[t**2 for t in x]
w=[t**3 for t in x]
plt.plot(x,y,'r--',x,z,'bs',x,w,'g^')

#axis()
plt.axis([-1,2,-1,2]) #(xmin,xmax, ymin, ymax)




