#Importation bibliothèques
import numpy as np
import matplotlib.pyplot as plt
import scipy as signal
import cmath as cm
from math import pi,cos
import matplotlib.ticker as tck

####
Npt=????? # nombre de points à tracer
tmin=0
tmax=?????? # valeur maximale du temps (sur le graphe) en seconde
t=np.linspace(tmin,tmax,Npt)

u=?????? #expression numerique du signal


######Graphe

plt.figure(0)

plt.plot(t*1000,u,"k-",label="u")
plt.legend()
plt.title('Représentation temporelle du signal')
plt.xlim(tmin, tmax*1000)
plt.xscale('linear')
plt.yscale('linear')
plt.xlabel('t (ms)')
plt.ylabel('Tension (V)')
ax=plt.gca()
ax.yaxis.set_minor_locator(tck.MultipleLocator(base=0.1))
ax.yaxis.set_major_locator(tck.MultipleLocator(base=1))
ax.xaxis.set_minor_locator(tck.MultipleLocator(base=0.01))
ax.xaxis.set_major_locator(tck.MultipleLocator(base=0.05))

plt.grid(b=True, which='major',axis="both", color='black', linestyle='-')
plt.grid(b=True, which='minor',axis='both', color='grey', linestyle='--')

plt.show()