Sandbox
From Metabolomics.JP
(Difference between revisions)
| Line 59: | Line 59: | ||
FL3 | FL3 | ||
FL4}} | FL4}} | ||
| + | |||
| + | {{#extmass:FL1AAC}} | ||
| + | {{#lua: | ||
| + | local id, ms | ||
| + | local hash = {} | ||
| + | local idx = {} | ||
| + | for id, ms in stdin:gmatch("&&(%w+)&&([%d\.]+)") do | ||
| + | hash[tonumber(ms)] = id; | ||
| + | table.insert(idx, tonumber(ms)); | ||
| + | end | ||
| + | table.sort(idx); | ||
| + | for id, val in pairs(idx) do | ||
| + | print(id, val, hash[val], "\n") | ||
| + | end | ||
| + | |{{#extmass:FL1AAC}}}} | ||
Revision as of 16:03, 25 April 2008
this is sandbox page.
このページでは、変数を使用しています。
{{#graph:
pie(円グラフ)もしくはpie3(3D円グラフ)(後で、折れ線グラフ、棒グラフをサポートする予定)
横サイズx縦サイズ(ex. 300x400)
データ(,区切り)
ラベル(,区切り)
タイトル
}}
FL1 FL4
FL1
FL2
FL3
FL4
{{#extmass:FL1AAC}}