2019-02-26 23:58:18 +01:00
|
|
|
set terminal latex rotate
|
2022-04-01 19:48:54 +02:00
|
|
|
set output './CoursMecaniqueOSDF-gnuplottex-fig1.tex'
|
2019-02-26 23:58:18 +01:00
|
|
|
# domaine de définition
|
2019-03-14 10:44:35 +01:00
|
|
|
#set xrange [0:1E11]
|
|
|
|
#set yrange [-1E40:1E40]
|
|
|
|
set xrange [0:5]
|
|
|
|
set yrange [-1E46:1E45]
|
2019-02-26 23:58:18 +01:00
|
|
|
# flèches
|
2019-03-14 10:44:35 +01:00
|
|
|
#set arrow 1 from 39.7,120 to 39.7,0 head filled
|
2019-02-26 23:58:18 +01:00
|
|
|
#size screen 0.5,30
|
2019-03-14 10:44:35 +01:00
|
|
|
#set label "Écart type" at 39.4,100 rotate by 90
|
|
|
|
#set arrow 2 from 44.1,120 to 44.1,0 head filled
|
|
|
|
#set label "Écart type" at 44.4,138 rotate by -90
|
|
|
|
#set arrow 3 from 41.9,120 to 41.9,0 head filled
|
|
|
|
#set label "Moyenne" at 42.2,80 rotate by -90
|
2019-02-26 23:58:18 +01:00
|
|
|
#set grid
|
|
|
|
#set title "Baguettes d'une année"
|
|
|
|
# suppression de la légende
|
2019-03-14 10:44:35 +01:00
|
|
|
#set key off
|
|
|
|
set key right bottom
|
2019-02-26 23:58:18 +01:00
|
|
|
# légendes des axes
|
2019-03-14 10:44:35 +01:00
|
|
|
set xlabel "Distance (m)"
|
|
|
|
#set ylabel "Gravitation" rotate by 90
|
2019-02-26 23:58:18 +01:00
|
|
|
# largeur des colonnes (boxes)
|
|
|
|
#set boxwidth 0.1
|
2019-03-14 10:44:35 +01:00
|
|
|
#set arrow from graph 1,0 to graph 1.05,0 size screen 0.025,15,60 filled ls 11
|
|
|
|
#set arrow from graph 0,1 to graph 0,1.05 size screen 0.025,15,60 filled ls 11
|
|
|
|
set xzeroaxis
|
|
|
|
G=6.67E-11
|
|
|
|
M=1.99E30
|
|
|
|
m=5.97E24
|
|
|
|
F(x)=-G*M*m/x**2
|
|
|
|
E(x)=-G*M*m/x
|
2019-02-26 23:58:18 +01:00
|
|
|
# tracé du graphe
|
2019-03-14 10:44:35 +01:00
|
|
|
plot E(x) title "Énergie potentielle (J)", F(x) title "Force de gravitation (N)"
|