<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://research.nationalgallery.org.uk/wiki/research/Template:GraphAnn?action=history&amp;feed=atom</id>
	<title>Template:GraphAnn - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://research.nationalgallery.org.uk/wiki/research/Template:GraphAnn?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://research.nationalgallery.org.uk/wiki/research/Template:GraphAnn?action=history"/>
	<updated>2026-04-17T12:45:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://research.nationalgallery.org.uk/wiki/ng/index.php?title=Template:GraphAnn&amp;diff=215&amp;oldid=prev</id>
		<title>Jpadfield: Created page with &quot;&lt;noinclude&gt;__NOTOC__ This widget allows you to convert a simple uploaded list of comma separated values into a graph using the Widget:GraphAnn.   {|cellpadding=&quot;10&quot; cellspaci...&quot;</title>
		<link rel="alternate" type="text/html" href="https://research.nationalgallery.org.uk/wiki/ng/index.php?title=Template:GraphAnn&amp;diff=215&amp;oldid=prev"/>
		<updated>2011-06-10T17:47:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;noinclude&amp;gt;__NOTOC__ This widget allows you to convert a simple uploaded list of comma separated values into a graph using the &lt;a href=&quot;/wiki/research/Widget:GraphAnn?action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Widget:GraphAnn (page does not exist)&quot;&gt;Widget:GraphAnn&lt;/a&gt;.   {|cellpadding=&amp;quot;10&amp;quot; cellspaci...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;__NOTOC__&lt;br /&gt;
This widget allows you to convert a simple uploaded list of comma separated values into a graph using the [[Widget:GraphAnn]]. &lt;br /&gt;
&lt;br /&gt;
{|cellpadding=&amp;quot;10&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot; style=&amp;quot;border-style: solid; border-color: #F00&amp;quot;&lt;br /&gt;
|'''Template Example'''&lt;br /&gt;
Prepare your data in a simple text file as follows:&amp;lt;br/&amp;gt;&lt;br /&gt;
 Xtitle, Ytitle&lt;br /&gt;
 380, 21.340902&lt;br /&gt;
 382, 33.233604&lt;br /&gt;
 384, 21.972370&lt;br /&gt;
 386, 24.424133&lt;br /&gt;
 388, 24.515604&lt;br /&gt;
 390, 25.614174&lt;br /&gt;
 392, 22.461115&lt;br /&gt;
 394, 27.229023&lt;br /&gt;
 396, 24.665756&lt;br /&gt;
 398, 26.529636&lt;br /&gt;
 400, 26.045645&lt;br /&gt;
 402, 28.149729&lt;br /&gt;
 ....&lt;br /&gt;
&lt;br /&gt;
Prepare your annotations in a simple text file as follows:&lt;br /&gt;
* [data series no, y-value, short text, long text, short text display width]&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
 [&lt;br /&gt;
 [1, 14.952, 'Sub', 'Methyl suberate', 50],&lt;br /&gt;
 [1, 16.204, 'A', 'Methyl azalate', 50],&lt;br /&gt;
 [1, 20.241, 'P', 'Methyl palmitate', 50],&lt;br /&gt;
 [1, 22.157, 'S', 'Methyl stearate', 50],&lt;br /&gt;
 ....&lt;br /&gt;
 ]&lt;br /&gt;
&lt;br /&gt;
* Save your data text file with an appropriate name: mydata.txt&lt;br /&gt;
* Save your annotation text file with an appropriate name: mydata_annotations.txt&lt;br /&gt;
* Upload both files to the wiki using, [[Special:Upload]]&lt;br /&gt;
* You can now add a simple graph of data included in your file to any page using the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 {{Template:GraphAnn|&lt;br /&gt;
  {{filepath:mydata.txt}}|&lt;br /&gt;
  graphName|&lt;br /&gt;
  width|&lt;br /&gt;
  height|&lt;br /&gt;
  title|&lt;br /&gt;
  xtitle|&lt;br /&gt;
  ytitle|&lt;br /&gt;
  {{filepath:mydata_annotations.txt}}}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
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:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 {{Template:GraphAnn|&lt;br /&gt;
  data={{filepath:M1382s4_rep_GCMS_140211.txt}}|&lt;br /&gt;
  div=graph1|&lt;br /&gt;
  wid=400px|&lt;br /&gt;
  hei=300px|&lt;br /&gt;
  title=Example Graph|&lt;br /&gt;
  xtitle=Wavenumber|&lt;br /&gt;
  ytitle=Intensity|&lt;br /&gt;
  ann={{filepath:M1382s4_rep_GCMS_140211_Annotations.txt}}&lt;br /&gt;
 }}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
{{Template:GraphAnn|&lt;br /&gt;
data={{filepath:M1382s4_rep_GCMS_140211.txt}}|&lt;br /&gt;
div=graph1|&lt;br /&gt;
wid=800px|&lt;br /&gt;
hei=500px|&lt;br /&gt;
title=Example Graph|&lt;br /&gt;
xtitle=Wavenumber|&lt;br /&gt;
ytitle=Intensity|&lt;br /&gt;
ann={{filepath:M1382s4_rep_GCMS_140211_Annotations.txt}}&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
{{#widget:GraphAnn|data={{{data}}}|div={{{div}}}|wid={{{wid}}}|&lt;br /&gt;
hei={{{hei}}}|&lt;br /&gt;
title={{{title}}}|&lt;br /&gt;
xtitle={{{xtitle}}}|&lt;br /&gt;
ytitle={{{ytitle}}}|&lt;br /&gt;
ann={{{ann}}}}}&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jpadfield</name></author>
	</entry>
</feed>