added moebius strip example / added XInitThreads - 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:
authorFrancesco Abbate <francesco.bbt@gmail.com>2010年07月23日 22:59:23 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2010年07月23日 22:59:23 +0200
commitdbe3ed247ea783b1a8087bf19b9be91c2e246b0b (patch)
treec9969664f56cc03d8a9be61666c9b4fba602a357 /examples
parente0c636c5c1e9bb0696ace9ba4d8e39f76843b484 (diff)
downloadgsl-shell-dbe3ed247ea783b1a8087bf19b9be91c2e246b0b.tar.gz
added moebius strip example / added XInitThreads
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.39.1) at 2025年09月26日 04:09:49 +0000

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