author | unknown <francesco abbate@.cro.st.com> | 2011年05月19日 17:00:12 +0200 |
---|---|---|
committer | unknown <francesco abbate@.cro.st.com> | 2011年05月19日 17:00:12 +0200 |
commit | ca81e85ae1979fb41910e9fc75a74001d5b53226 (patch) | |
tree | 447b01007f966b32dea8e38290f1d66e5428d07d /examples/linfit.lua | |
parent | c2a691c195c1722813fcb4411811c203f972a68e (diff) | |
parent | cebb3b91664e496120b30798b6cc59d1148b0ce7 (diff) | |
download | gsl-shell-ca81e85ae1979fb41910e9fc75a74001d5b53226.tar.gz |
-rw-r--r-- | examples/linfit.lua | 2 |
diff --git a/examples/linfit.lua b/examples/linfit.lua index 3b023bcf..df67c28c 100644 --- a/examples/linfit.lua +++ b/examples/linfit.lua @@ -16,7 +16,7 @@ function demo1() print('Linear fit coefficients: ') - fit = function(x) return c[1]+c[2]*x end + local fit = function(x) return c[1]+c[2]*x end p = graph.fxplot(fit, x0, x1) p:add(graph.xyline(x, y), 'blue', {{'stroke'}, {'marker', size=5}}) |