Documentation updated
This commit is contained in:
+5
-5
@@ -47,13 +47,13 @@ function gp_test()
|
||||
x, y+noise, e, "w errorbars t 'Data'")
|
||||
|
||||
@gp "f(x) = a * sin(b + c*x); a = 1; b = 1; c = 1;" :-
|
||||
@gp :- x y+noise e "\$aa" :-
|
||||
@gp :- "fit f(x) \$aa u 1:2:3 via a, b, c;" :-
|
||||
@gp :- x y+noise e name :-
|
||||
@gp :- "fit f(x) $name u 1:2:3 via a, b, c;" :-
|
||||
@gp :- "set multiplot layout 2,1" :-
|
||||
@gp :- "plot \$aa w points" ylab="Data and model" :-
|
||||
@gp :- "plot \$aa u 1:(f(\$1)) w lines" :-
|
||||
@gp :- "plot $name w points" ylab="Data and model" :-
|
||||
@gp :- "plot $name u 1:(f(\$1)) w lines" :-
|
||||
@gp :- 2 xlab="X label" ylab="Residuals" :-
|
||||
@gp :- "plot \$aa u 1:((f(\$1)-\$2) / \$3):(1) w errorbars notit"
|
||||
@gp :- "plot $name u 1:((f(\$1)-\$2) / \$3):(1) w errorbars notit"
|
||||
|
||||
# Retrieve values fr a, b and c
|
||||
a = parse(Float64, gpeval("print a"))
|
||||
|
||||
Reference in New Issue
Block a user