-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot.gp
More file actions
27 lines (21 loc) · 678 Bytes
/
plot.gp
File metadata and controls
27 lines (21 loc) · 678 Bytes
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
path = "path_to_result_directory"
set terminal pdfcairo size 20cm, 15cm
set output path."conve.pdf"
set grid
# set origin 0,0
set multiplot layout 2,2 columnsfirst
# Objective function
# j0 = system("load " .path."J0");
j0 = 0.0529616;
plot path."out.dat" u ($1/j0) w l t "J/J0" lw 3
unset format
#L
plot path."out.dat" u 2 w l t "Augmented Lagrangian" lw 3
# Constraint
# constr = system("cat ".path."constrtarget");
constr = 0.123358;
plot path."out.dat" u 3 w l t "V" lw 3, path."out.dat" u (constr + 0*$3) w l t "ConstrTarget" lw 3
unset logscale
plot path."out.dat" u 4 w l t "Lagrange multiplier" lw 3
unset multiplot
set terminal pdfcairo size 20cm, 15cm