gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/anim.lua 2
-rw-r--r--examples/nlinfit.lua 1
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/anim.lua b/examples/anim.lua
index 0d1b1828..8047e00e 100644
--- a/examples/anim.lua
+++ b/examples/anim.lua
@@ -29,7 +29,7 @@ function demo2()
local w = 4*exp((j-256)/256)
p:clear()
local ln = fxline(|x| exp(-0.1*x)*cos(w*x), 0, x1)
- p:draw(ln, 'red', {{'stroke'}})
+ p:draw(ln, 'red', {{'stroke', width=1.5}})
p:refresh()
end
end
diff --git a/examples/nlinfit.lua b/examples/nlinfit.lua
index 3828097f..5a6e20b2 100644
--- a/examples/nlinfit.lua
+++ b/examples/nlinfit.lua
@@ -133,6 +133,7 @@ function demo2bis()
pl = plot('Non-linear fit / A * exp(a t) sin(w t)')
pl:addline(xyline(x, y), 'blue', {{'marker', size= 5}})
+ pl:show()
local function print_state(s)
print ("x: ", tr(s.p))
generated by cgit v1.2.3 (git 2.46.0) at 2025年10月03日 06:07:04 +0000

AltStyle によって変換されたページ (->オリジナル) /