30 lines
941 B
Plaintext
30 lines
941 B
Plaintext
|
set terminal epslatex font 8 color dashed
|
||
|
set output './ModeleLaTeX_TP-gnuplottex-fig19.tex'
|
||
|
set format '\num{%g}'
|
||
|
set key top right Right
|
||
|
set key width 1
|
||
|
set key heigh 1
|
||
|
set key spacing 1.5
|
||
|
|
||
|
set xlabel 'Courant I (\si{\milli\ampere})' # attention il faut parfois utiliser certains guillemets
|
||
|
# notamment quand on utilise la commande \si, il faut impérativement des primes '...'
|
||
|
set ylabel 'Tension U (\si{\volt})'
|
||
|
|
||
|
#Rmaxpot = 46000
|
||
|
# Création du fit des données
|
||
|
# ---
|
||
|
# la fonction de fit
|
||
|
f(x)=-a*x+b
|
||
|
fit f(x) 'gene/data_gene_9V_accu9V.txt' index 0 u 1:2 via a,b
|
||
|
R=a*1000
|
||
|
title_f(a,b) = sprintf('Fit série 1 : \(U(I) = {%.1f}\cdot I+{%.3f}\)', R, b)
|
||
|
|
||
|
# Pour Gnuplot directement en ligne de commande
|
||
|
#plot [0.55:5][0:4] 'data_condo.txt' index 0 u 1:2
|
||
|
|
||
|
#set style line 1 lt 0 lw 4
|
||
|
|
||
|
plot [0:35][0:9]\
|
||
|
'gene/data_gene_9V_accu9V.txt' index 0 u 1:2:3:4 title 'Série 0' pt 4 lc rgb 'grey60' w xyerrorbars,\
|
||
|
f(x) title title_f(a,b) lc 'green'
|