set terminal epslatex font 8 color dashed set output './ModeleLaTeX_TP-gnuplottex-fig3.tex' set format '\num{%g}' set key top left Left set key width 2 set key heigh 1 set key spacing 1.7 set xlabel 'Tension U (\si{\volt})' # attention il faut parfois utiliser certains guillemets # notamment quand on utilise la commande \si, il faut impérativement des primes '...' set ylabel 'Courant I (\si{\milli\ampere})' #R = 471000 # Création du fit des données # --- # la fonction de fit #f(x)=(7.484-b)*exp(-(x-2.741)/a)+b #fit f(x) 'condo/data_condo_100µF_8V_471kΩ_time.txt' index 0 u 1:2 via a,b #C=a/R*1000000 #e=(100-C)/100*100 #title_f(a,b) = sprintf('\(\tau = RC = \SI{%.3f}{\second}\) ; \(C = \SI{%.3f}{\micro\farad}\) ; {%.1f}\%', a, C, e) # Pour Gnuplot directement en ligne de commande #plot [0.55:5][0:4] 'data_condo.txt' index 0 u 1:2 plot [0:3][0:30]\ 'diode/data_L1.txt' index 0 u 1:2:3:4 title '\(R=\SI{187}{\ohm}\) LED verte ' pt 4 w xyerrorbars,\ 'diode/data_L1.txt' index 1 u 1:2:3:4 title '\(R=\SI{187}{\ohm}\) LED rouge ' pt 4 w xyerrorbars,\ 'diode/data_L1.txt' index 2 u 1:2:3:4 title '\(R=\SI{187}{\ohm}\) LED jaune ' pt 4 w xyerrorbars,\ 'diode/data_L1.txt' index 3 u 1:2:3:4 title '\(R=\SI{187}{\ohm}\) LED verte sombre ' pt 4 w xyerrorbars