Template:DyGraph: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<noinclude>__NOTOC__ This widget allows you to convert a simple uploaded list of comma separated values into a graph using the Widget:dyGraph. {|cellpadding="10" cellspacin...") |
No edit summary |
||
Line 76: | Line 76: | ||
{{#widget:dyGraph| | {{#widget:dyGraph| | ||
data={{{data}}}| | data={{{data}}}| | ||
rX={{#ifeq:{{{rX|}}}|||{{{rX}}}}}| | |||
div={{{div}}}| | div={{{div}}}| | ||
wid={{{wid|}}}| | wid={{{wid|}}}| |
Latest revision as of 16:25, 31 October 2011
This widget allows you to convert a simple uploaded list of comma separated values into a graph using the Widget:dyGraph.
Template Example
Prepare your data in a simple text file as follows: Xtitle, Ytitle 380, 21.340902 382, 33.233604 384, 21.972370 386, 24.424133 388, 24.515604 390, 25.614174 392, 22.461115 394, 27.229023 396, 24.665756 398, 26.529636 400, 26.045645 402, 28.149729 .... Prepare your annotations in a simple text file as follows:
[ [1, 14.952, 'Sub', 'Methyl suberate', 50], [1, 16.204, 'A', 'Methyl azalate', 50], [1, 20.241, 'P', 'Methyl palmitate', 50], [1, 22.157, 'S', 'Methyl stearate', 50], .... ]
{{Template:dyGraph| {{filepath:mydata.txt}}| graphName| width| height| title| xtitle| ytitle| {{filepath:mydata_annotations.txt}}}} As an example the files File:M1382s4 rep GCMS 140211.txt and File:M1382s4 rep GCMS 140211 Annotations.txt have already been uploaded and the graph can be produced using: {{Template:dyGraph| data={{filepath:M1382s4_rep_GCMS_140211.txt}}| div=graph1| wid=400px| hei=300px| title=Example Graph| xtitle=Wavenumber| ytitle=Intensity| ann={{filepath:M1382s4_rep_GCMS_140211_Annotations.txt}} }} |
|