-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommande.gnuplot
53 lines (47 loc) · 1.87 KB
/
commande.gnuplot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Samy HORCHANI (n° étudiant 28706765)
# Premier graphique avec échelle logarithmique
set terminal png
#set title "Évolution du temps en fonction de la taille de l'entrée en échelle logarithmique"
set output 'benchmark/FFT_vs_NAIVE_log.png'
set xlabel 'n'
set ylabel 'temps (en seconde)'
set xrange [1:15000]
set logscale x
set logscale y
set yrange [1e-8:1e-1]
set format y '%.1e'
plot 'benchmark/data_FFT.txt' using 1:2 with lines title 'fftMultiplyPolynomials', \
'benchmark/data_NAIVE.txt' using 1:2 with lines title 'naiveMultiplyPolynomials'
# Deuxième graphique sans échelle logarithmique
set key top left
#set title "Évolution du temps en fonction de la taille de l'entrée"
set output 'benchmark/FFT_vs_NAIVE.png'
unset logscale y # Retour à l'échelle linéaire pour l'axe des y
unset logscale x
set yrange [1e-5:1e-2]
set format y '%g' # Format par défaut ou adapté à vos données
plot 'benchmark/data_FFT.txt' using 1:2 with lines title 'fftMultiplyPolynomials', \
'benchmark/data_NAIVE.txt' using 1:2 with lines title 'naiveMultiplyPolynomials'
# ZOOM
set key top left
#set title "Évolution du temps en fonction de la taille de l'entrée"
set output 'benchmark/FFT_vs_NAIVE_zoom.png'
set xrange [4000:6000]
set yrange [1e-5:1e-2]
set format y '%g' # Format par défaut ou adapté à vos données
plot 'benchmark/data_FFT.txt' using 1:2 with lines title 'fftMultiplyPolynomials', \
'benchmark/data_NAIVE.txt' using 1:2 with lines title 'naiveMultiplyPolynomials'
# THEORIQUE NAIVE
set key top left
set output 'benchmark/NAIVE_THEO.png'
set xrange[1:10000]
set yrange[1:1e08]
unset ylabel
plot x**2 with lines title 'naiveMultiplyPolynomials theorique'
# THEORIQUE NAIVE
set key top left
set output 'benchmark/FFT_THEO.png'
set xrange[1:10000]
unset yrange
unset ylabel
plot 2**ceil(log(x)/log(2))*ceil(log(x)/log(2)) with lines title 'fftMultiplyPolynomials theorique'