<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?action=history&amp;feed=atom&amp;title=Mike%27s_fancy_plots_%28xfig_example%29</id>
	<title>Mike's fancy plots (xfig example) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?action=history&amp;feed=atom&amp;title=Mike%27s_fancy_plots_%28xfig_example%29"/>
	<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Mike%27s_fancy_plots_(xfig_example)&amp;action=history"/>
	<updated>2026-05-30T05:21:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.7</generator>
	<entry>
		<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Mike%27s_fancy_plots_(xfig_example)&amp;diff=1203&amp;oldid=prev</id>
		<title>Obst: Obst moved page Mike's fancy plots to Mike's fancy plots (xfig example) without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Mike%27s_fancy_plots_(xfig_example)&amp;diff=1203&amp;oldid=prev"/>
		<updated>2018-04-18T10:31:36Z</updated>

		<summary type="html">&lt;p&gt;Obst moved page &lt;a href=&quot;/wiki/index.php?title=Mike%27s_fancy_plots&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Mike&amp;#039;s fancy plots (page does not exist)&quot;&gt;Mike&amp;#039;s fancy plots&lt;/a&gt; to &lt;a href=&quot;/wiki/index.php/Mike%27s_fancy_plots_(xfig_example)&quot; title=&quot;Mike&amp;#039;s fancy plots (xfig example)&quot;&gt;Mike&amp;#039;s fancy plots (xfig example)&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:31, 18 April 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Obst</name></author>
	</entry>
	<entry>
		<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Mike%27s_fancy_plots_(xfig_example)&amp;diff=1199&amp;oldid=prev</id>
		<title>Obst: /* Finally combining all panels */</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Mike%27s_fancy_plots_(xfig_example)&amp;diff=1199&amp;oldid=prev"/>
		<updated>2018-04-18T10:25:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Finally combining all panels&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:25, 18 April 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l199&quot; &gt;Line 199:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 199:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== Finally combining all panels ====&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== Finally combining all panels ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;simply using [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;isis:slxfig:multiplot&lt;/del&gt;|xfig_multiplot]]:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;simply using [[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Compounds and multi-panel plots (xfig example)&lt;/ins&gt;|xfig_multiplot]]:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   xfig_multiplot(X, R, M; xlabel=`Energy [keV]`).render(&amp;quot;EPIC-pn_spectrum.pdf&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   xfig_multiplot(X, R, M; xlabel=`Energy [keV]`).render(&amp;quot;EPIC-pn_spectrum.pdf&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Obst</name></author>
	</entry>
	<entry>
		<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Mike%27s_fancy_plots_(xfig_example)&amp;diff=1198&amp;oldid=prev</id>
		<title>Obst: /* Mike's fancy plots */</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Mike%27s_fancy_plots_(xfig_example)&amp;diff=1198&amp;oldid=prev"/>
		<updated>2018-04-18T10:23:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Mike&amp;#039;s fancy plots&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:23, 18 April 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot; &gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Mike's fancy plots =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Mike's fancy plots =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A passionate ISIS user (hereafter referred to as &amp;quot;Mike&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A passionate ISIS user (hereafter referred to as &amp;quot;Mike&amp;quot;) has compiled a set of [http://space.mit.edu/home/mnowak/isis_vs_xspec/plots.html powerful plot functions]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;has compiled a set of [http://space.mit.edu/home/mnowak/isis_vs_xspec/plots.html powerful plot functions]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;for spectra in ISIS, which rely on its PGPLOT module. To my knowledge, these functions do currently (2011 April) not yet offer an interface&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;for spectra in ISIS, which rely on its PGPLOT module.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;to extract the data directly within ISIS. However, there is a &amp;lt;code&amp;gt;write_plot&amp;lt;/code&amp;gt; function that &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/ins&gt;&amp;quot;creates ASCII files with the data from the last plot made using&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'' &lt;/ins&gt;&amp;lt;code&amp;gt;plot_counts&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;plot_data&amp;lt;/code&amp;gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;plot_residuals&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/code&amp;gt;, &lt;/ins&gt;''or'' &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;plot_unfold&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&gt;.&amp;quot; The numbers that appear in any of these fancy plots can hence be dumped to a file, subsequently read from S-Lang, and plotted using [[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Plotting with the S-Lang Xfig module&lt;/ins&gt;|SLxfig]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To my knowledge, these functions do currently (2011 April) not yet offer an interface&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;to extract the data directly within ISIS.&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;However, there is a &amp;lt;code&amp;gt;write_plot&amp;lt;/code&amp;gt; function that &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;// &lt;/del&gt;&amp;quot;creates ASCII files&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;with the data from the last plot made using &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;// &lt;/del&gt;&amp;lt;code&amp;gt;plot_counts&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;plot_data&amp;lt;/code&amp;gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/del&gt;plot_residuals''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, //&lt;/del&gt;or&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;// &lt;/del&gt;''plot_unfold&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/del&gt;.&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The numbers that appear in any of these fancy plots can hence be dumped to a file,&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;subsequently read from S-Lang, and plotted using [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;isis:slxfig&lt;/del&gt;|SLxfig]].&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Ideally, one should at some point modify Mike's fancy plot functions,  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Ideally, one should at some point modify Mike's fancy plot functions, creating a public interface for the data. But for the time being, using &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;write_plot&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/code&amp;gt; &lt;/ins&gt;is a simple workaround, and it's actually quite useful to have the data, which shall be displayed in your plots, stored in plain ASCII files -- independent of the full set of spectra and response matrices etc.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;creating a public interface for the data.&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;But for the time being, using &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/del&gt;write_plot&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'' &lt;/del&gt;is a simple workaround,&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;and it's actually quite useful to have the data, which shall be displayed in your plots,&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;stored in plain ASCII files -- independent of the full set of spectra and response matrices etc.&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== If get an error message ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== If get an error message ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fpd is undefined&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fpd is undefined&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(or the like) from &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/del&gt;write_plot&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/del&gt;, you are most probably using an old version of Mike's scripts (0.X),&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(or the like) from &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;write_plot&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&gt;, you are most probably using an old version of Mike's scripts (0.X), which is not supported any more, and should therefore seriously consider to change to version 1.x -- even though it is not 100% backward compatible.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;which is not supported any more,&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;and should therefore seriously consider to change to version 1.x -- even though it is not 100% backward compatible.&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= An example =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= An example =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Obst</name></author>
	</entry>
	<entry>
		<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Mike%27s_fancy_plots_(xfig_example)&amp;diff=1190&amp;oldid=prev</id>
		<title>Obst: /* Mike's fancy plots */</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Mike%27s_fancy_plots_(xfig_example)&amp;diff=1190&amp;oldid=prev"/>
		<updated>2018-04-18T09:54:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Mike&amp;#039;s fancy plots&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:54, 18 April 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot; &gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Mike's fancy plots =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Mike's fancy plots =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A passionate ISIS user (hereafter referred to as &amp;quot;Mike&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A passionate ISIS user (hereafter referred to as &amp;quot;Mike&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;has compiled a set of &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/del&gt;[http://space.mit.edu/home/mnowak/isis_vs_xspec/plots.html&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|&lt;/del&gt;powerful plot functions&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;]&lt;/del&gt;]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;has compiled a set of [http://space.mit.edu/home/mnowak/isis_vs_xspec/plots.html powerful plot functions]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;for spectra in ISIS, which rely on its PGPLOT module.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;for spectra in ISIS, which rely on its PGPLOT module.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To my knowledge, these functions do currently (2011 April) not yet offer an interface&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To my knowledge, these functions do currently (2011 April) not yet offer an interface&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;to extract the data directly within ISIS.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;to extract the data directly within ISIS.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;However, there is a &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/del&gt;write_plot&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'' &lt;/del&gt;function that //&amp;quot;creates ASCII files&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;However, there is a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;write_plot&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/code&amp;gt; &lt;/ins&gt;function that // &amp;quot;creates ASCII files&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;with the data from the last plot made using//&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;with the data from the last plot made using // &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;plot_counts&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;plot_data&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&gt;, ''plot_residuals'', //or// ''plot_unfold''.&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/del&gt;plot_counts&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/del&gt;plot_data&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/del&gt;, ''plot_residuals'', //or// ''plot_unfold''.&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The numbers that appear in any of these fancy plots can hence be dumped to a file,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The numbers that appear in any of these fancy plots can hence be dumped to a file,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;subsequently read from S-Lang, and plotted using [[isis:slxfig|SLxfig]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;subsequently read from S-Lang, and plotted using [[isis:slxfig|SLxfig]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Obst</name></author>
	</entry>
	<entry>
		<id>https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Mike%27s_fancy_plots_(xfig_example)&amp;diff=1187&amp;oldid=prev</id>
		<title>Obst: Created page with &quot;--- //example added by Manfred// ---  = Mike's fancy plots = A passionate ISIS user (hereafter referred to as &quot;Mike&quot;) has compiled a set of http://space.mit.edu/home/mnowak/...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Mike%27s_fancy_plots_(xfig_example)&amp;diff=1187&amp;oldid=prev"/>
		<updated>2018-04-18T09:50:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;--- //example added by Manfred// ---  = Mike&amp;#039;s fancy plots = A passionate ISIS user (hereafter referred to as &amp;quot;Mike&amp;quot;) has compiled a set of http://space.mit.edu/home/mnowak/...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--- //example added by Manfred// ---&lt;br /&gt;
&lt;br /&gt;
= Mike's fancy plots =&lt;br /&gt;
A passionate ISIS user (hereafter referred to as &amp;quot;Mike&amp;quot;)&lt;br /&gt;
has compiled a set of [[http://space.mit.edu/home/mnowak/isis_vs_xspec/plots.html|powerful plot functions]]&lt;br /&gt;
for spectra in ISIS, which rely on its PGPLOT module.&lt;br /&gt;
To my knowledge, these functions do currently (2011 April) not yet offer an interface&lt;br /&gt;
to extract the data directly within ISIS.&lt;br /&gt;
However, there is a ''write_plot'' function that //&amp;quot;creates ASCII files&lt;br /&gt;
with the data from the last plot made using//&lt;br /&gt;
''plot_counts'', ''plot_data'', ''plot_residuals'', //or// ''plot_unfold''.&amp;quot;&lt;br /&gt;
The numbers that appear in any of these fancy plots can hence be dumped to a file,&lt;br /&gt;
subsequently read from S-Lang, and plotted using [[isis:slxfig|SLxfig]].&lt;br /&gt;
&lt;br /&gt;
Ideally, one should at some point modify Mike's fancy plot functions, &lt;br /&gt;
creating a public interface for the data.&lt;br /&gt;
But for the time being, using ''write_plot'' is a simple workaround,&lt;br /&gt;
and it's actually quite useful to have the data, which shall be displayed in your plots,&lt;br /&gt;
stored in plain ASCII files -- independent of the full set of spectra and response matrices etc.&lt;br /&gt;
&lt;br /&gt;
=== If get an error message ===&lt;br /&gt;
  fpd is undefined&lt;br /&gt;
(or the like) from ''write_plot'', you are most probably using an old version of Mike's scripts (0.X),&lt;br /&gt;
which is not supported any more,&lt;br /&gt;
and should therefore seriously consider to change to version 1.x -- even though it is not 100% backward compatible.&lt;br /&gt;
&lt;br /&gt;
= An example =&lt;br /&gt;
This example is based on Fig. 2.79 of a document I was preparing recently...&lt;br /&gt;
&lt;br /&gt;
As usually, it is recommended to store all files&lt;br /&gt;
needed to generate //a single plot// for your thesis, talk, publication, etc.&lt;br /&gt;
in //a single subdirectory//.&lt;br /&gt;
This advice also holds for the script that loads the data:&lt;br /&gt;
&lt;br /&gt;
== Loading the data ==&lt;br /&gt;
You certainly have already a script that loads your data, don't you?&lt;br /&gt;
It's nevertheless reasonable to copy this file to the directory with the files needed for the plot, &lt;br /&gt;
since you might modify the load data script in your analysis script,&lt;br /&gt;
but will once have to find out what (the heck) you did (a long time before) to create (exactly) this plot.&lt;br /&gt;
  % loaddata.sl&lt;br /&gt;
  &lt;br /&gt;
  require(&amp;quot;isisscripts&amp;quot;);&lt;br /&gt;
  &lt;br /&gt;
  variable dir = getcwd();                       % store current working directory&lt;br /&gt;
  ()=chdir(&amp;quot;/path/to/your/data&amp;quot;);                % go to your analysis directory&lt;br /&gt;
  variable pn = load_data(&amp;quot;src_sd.pha&amp;quot;);         % load the data (obviously)&lt;br /&gt;
  ()=chdir(dir);                                 % go back to the previous directory&lt;br /&gt;
  &lt;br /&gt;
  group(pn; min_sn=20, bounds=0.6, unit=&amp;quot;keV&amp;quot;);  % do all the setup...&lt;br /&gt;
  ignore_en(pn, , 0.6);&lt;br /&gt;
  ignore_en(pn, 5, );&lt;br /&gt;
&lt;br /&gt;
Even though ''loaddata.sl'' is here only needed to get the data (next section),&lt;br /&gt;
it might be useful to keep it separate.&lt;br /&gt;
&lt;br /&gt;
== Getting the data / model / residuals ==&lt;br /&gt;
I want to compare three models, for which I copied the parameter files&lt;br /&gt;
''powerlaw.par'', ''powerlaw_diskbb.par'', and ''powerlaw_diskbb_gainshift.par''&lt;br /&gt;
to the directory storing all information how the plot was created.&lt;br /&gt;
&lt;br /&gt;
  ()=evalfile(&amp;quot;loaddata.sl&amp;quot;);&lt;br /&gt;
  &lt;br /&gt;
  variable m;&lt;br /&gt;
  foreach m ([&amp;quot;powerlaw&amp;quot;+[&amp;quot;&amp;quot;, &amp;quot;_diskbb&amp;quot;+[&amp;quot;&amp;quot;, &amp;quot;_gainshift&amp;quot;]]])  % a Horner scheme for file names? ;-)&lt;br /&gt;
  {&lt;br /&gt;
    message(m);&lt;br /&gt;
    load_par(m+&amp;quot;.par&amp;quot;);   % load the model&lt;br /&gt;
    ()=eval_counts();     % evaluate the model&lt;br /&gt;
    plot_data(1; res=1);  % call Mike's fancy plot function  &amp;lt;==&lt;br /&gt;
    write_plot(m);        % dump data into ASCII file        &amp;lt;==&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
The statements marked by &amp;lt;code&amp;gt; &amp;lt;== &amp;lt;/code&amp;gt; create the ASCII data files&lt;br /&gt;
''powerlaw_0.dat'', ''powerlaw_diskbb_0.dat'', and ''powerlaw_diskbb_gainshift_0.dat''&lt;br /&gt;
&lt;br /&gt;
in the following format&lt;br /&gt;
  # Plot Type : plot_data &lt;br /&gt;
  # &lt;br /&gt;
  # X-axis    : \frEnergy (keV) &lt;br /&gt;
  # Y-Axis    : \frCounts s\u-1\d keV\u-1\d &lt;br /&gt;
  # Residual  : \fr\gx &lt;br /&gt;
  # &lt;br /&gt;
  # Index-   1,  Model Plotted-      yes,  Data File: src_sd.pha/part=0/order=0,   Scale: 1.0000e+00 &lt;br /&gt;
  # &lt;br /&gt;
  # Background included in data and model-    no &lt;br /&gt;
  # &lt;br /&gt;
  # XAXIS_COLS   :   1 set  (X 2 columns - bin_lo, bin_hi)&lt;br /&gt;
  # DATA_COLS    :   1 set  (x 2 columns - Data, Error)&lt;br /&gt;
  # MODEL_COLS   :   1 set  (x 1 column  - Value) &lt;br /&gt;
  # RESIDUAL_COLS:   1 set  (x 3 columns - Mean, Mean-1Sigma, Mean+1Sigma)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! X_LO &lt;br /&gt;
! X_HI &lt;br /&gt;
! DATA_VALUE &lt;br /&gt;
! DATA_ERROR &lt;br /&gt;
! MODEL_VALUE &lt;br /&gt;
! RES_VALUE &lt;br /&gt;
! RES_VAL-ERR &lt;br /&gt;
! RES_VAL+ERR &lt;br /&gt;
|-&lt;br /&gt;
| ...  &lt;br /&gt;
| ...  &lt;br /&gt;
| ...        &lt;br /&gt;
| ...        &lt;br /&gt;
| ...         &lt;br /&gt;
| ...       &lt;br /&gt;
| ...         &lt;br /&gt;
| ...         &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Reading and plotting the data ==&lt;br /&gt;
Now I can go on with these ASCII data files only, even on my own laptop.&lt;br /&gt;
&lt;br /&gt;
==== Some global definitions ====&lt;br /&gt;
  require(&amp;quot;isisscripts&amp;quot;);&lt;br /&gt;
  &lt;br /&gt;
  variable file = [&amp;quot;powerlaw&amp;quot;+[&amp;quot;&amp;quot;, &amp;quot;_diskbb&amp;quot;+[&amp;quot;&amp;quot;, &amp;quot;_gainshift&amp;quot;]]];&lt;br /&gt;
  variable chi2red = [`7.56`, `2.18`, `1.09`];&lt;br /&gt;
  &lt;br /&gt;
  variable W=14, H=6,                      % width and height of first panel&lt;br /&gt;
           Emin=.55, Emax=5.5,             % common xrange of all panels&lt;br /&gt;
           Rmin=-11, Rmax=9,               % common yrange of the residual panels&lt;br /&gt;
           Maj=[.6, 1, 1.5, 2, 3, 4, 5],   % major tic marks (energy axis)&lt;br /&gt;
           Min=[[.5:2:.1], [2:6:.2]];      % minor tic marks (energy axis)&lt;br /&gt;
  xfig_new_color(&amp;quot;col0&amp;quot;, 0xC00000);&lt;br /&gt;
  xfig_new_color(&amp;quot;col1&amp;quot;, 0x0000E0);&lt;br /&gt;
  xfig_new_color(&amp;quot;col2&amp;quot;, 0x00A000);&lt;br /&gt;
&lt;br /&gt;
==== Data panel ====&lt;br /&gt;
edit: alternatively to the example below using readcol, you can also use&lt;br /&gt;
&lt;br /&gt;
  Structure str = read_data_from_write_plot(String_Type file)&lt;br /&gt;
&lt;br /&gt;
...with readcol:&lt;br /&gt;
&lt;br /&gt;
  % reading four columns of the first ASCII data file (X_LO, X_HI, DATA_VALUE, DATA_ERROR)&lt;br /&gt;
  variable lo, hi, val, err; (lo, hi, val, err) = readcol(file[0]+&amp;quot;_0.dat&amp;quot;, 1, 2, 3, 4);&lt;br /&gt;
  &lt;br /&gt;
  variable X = xfig_plot_new(W, H);&lt;br /&gt;
  X.world(Emin, Emax, min_max(val/1e3; logpad=0.05); xlog, ylog);&lt;br /&gt;
  X.xaxis(; major=Maj, minor=Min, ticlabels2=0);&lt;br /&gt;
  X.ylabel(`Count Rate [$10^3\rm\,s^{-1}\,keV^{-1}$]`);&lt;br /&gt;
  &lt;br /&gt;
  % plotting the data&lt;br /&gt;
  X.plot((lo+hi)/2., val/1e3, err/1e3; sym=&amp;quot;point&amp;quot;, size=-1, eb_factor=0, depth=100);&lt;br /&gt;
  &lt;br /&gt;
  % I add some labels using the world0 coordinate system (in which the plot window extends from 0 to 1).&lt;br /&gt;
  % I use `` as string delimiters for LaTeX code and avoid to have to escape every backslash (as in &amp;quot;\\&amp;quot;).&lt;br /&gt;
  X.xylabel(.05, .3, `\tt TBnew\:*\: powerlaw`,                                 -.5, 0; world0, color=&amp;quot;col0&amp;quot;);&lt;br /&gt;
  X.xylabel(.05, .2, `\tt TBnew\:*\:(powerlaw\,+\,diskbb)`,                     -.5, 0; world0, color=&amp;quot;col1&amp;quot;);&lt;br /&gt;
  X.xylabel(.05, .1, `\tt TBnew\:*\:(powerlaw\,+\,diskbb) $\otimes$ gainshift`, -.5, 0; world0, color=&amp;quot;col2&amp;quot;);&lt;br /&gt;
  X.xylabel(.01, 1, `a)`, -.5, .8; world0);&lt;br /&gt;
&lt;br /&gt;
==== Loop over the models, creating the panels with the residuals ====&lt;br /&gt;
  variable R = Struct_Type[3];&lt;br /&gt;
  variable i;&lt;br /&gt;
  _for i (2, 0, -1)&lt;br /&gt;
  {&lt;br /&gt;
    % read (MODEL_VALUE, RES_VALUE) from the corresponding ASCII data file:&lt;br /&gt;
    variable m, r; (m, r) = readcol(file[i]+&amp;quot;_0.dat&amp;quot;, 5, 6);&lt;br /&gt;
    % add model to the data panel&lt;br /&gt;
    X.plot((lo+hi)/2., m/1e3; color=&amp;quot;col$i&amp;quot;$);&lt;br /&gt;
    &lt;br /&gt;
    % create residual panel&lt;br /&gt;
    R[i] = xfig_plot_new(W, H/3);&lt;br /&gt;
    R[i].world(Emin, Emax, Rmin, Rmax; xlog);&lt;br /&gt;
    R[i].yaxis(; major=[-10:10:5], minor=[-20:10], ticlabels2=0);&lt;br /&gt;
    R[i].xaxis(; major=Maj, minor=Min);&lt;br /&gt;
    R[i].ylabel(`$\chi$`; color=&amp;quot;col$i&amp;quot;$);&lt;br /&gt;
    R[i].plot((lo+hi)/2., r, 1; sym=&amp;quot;point&amp;quot;, size=-1, eb_factor=0, color=&amp;quot;col$i&amp;quot;$);&lt;br /&gt;
    R[i].plot([0,1], [0,0]; line=1, color=&amp;quot;#808080&amp;quot;, depth=100, world01);&lt;br /&gt;
    R[i].xylabel(.98, 0, `\footnotesize$\chi^2_{\rm red}=`+chi2red[i]+&amp;quot;$&amp;quot;, .5, -1; world0, color=&amp;quot;col$i&amp;quot;$);&lt;br /&gt;
    R[i].xylabel(.01, 1, sprintf(&amp;quot;%c)&amp;quot;, 'b'+i), -.5, .8; world0);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
==== Panel with the flux model and its components ====&lt;br /&gt;
  variable M = xfig_plot_new(W, H*.75);&lt;br /&gt;
  M.world(Emin, Emax, 0.03, 1.2; xlog, ylog);&lt;br /&gt;
  M.xaxis(; major=Maj, minor=Min, ticlabels2=0);&lt;br /&gt;
  M.xlabel(`Energy [keV]`);&lt;br /&gt;
  M.ylabel(`Flux \footnotesize[s$^{-1}$\,cm$^{-2}$\,keV$^{-1}$]`);&lt;br /&gt;
  M.xylabel(.01, 1, `e)`, -.5, .8; world0);&lt;br /&gt;
  &lt;br /&gt;
  % evaluate the model on a fine grid&lt;br /&gt;
  load_par(file[-1]+&amp;quot;.par&amp;quot;);&lt;br /&gt;
  variable Lo, Hi; (Lo, Hi) = log_grid(.6, 5, 1000);&lt;br /&gt;
  variable y = eval_fun_keV(Lo, Hi)/(Hi-Lo);  % flux in photons/s/cm^2/keV&lt;br /&gt;
  variable e = sqrt(Lo*Hi);  % Since the grid is logarithmic, I tend to use the geometric mean energy.&lt;br /&gt;
  M.plot(e, y; xlog, ylog, color=&amp;quot;col2&amp;quot;, depth=90, width=3);&lt;br /&gt;
  &lt;br /&gt;
  % disk flux&lt;br /&gt;
  variable coldisk = &amp;quot;#908000&amp;quot;;&lt;br /&gt;
  variable ff = get_fit_fun();&lt;br /&gt;
  fit_fun(strreplace(ff, &amp;quot;powerlaw(1)+&amp;quot;, &amp;quot;&amp;quot;));&lt;br /&gt;
  y = eval_fun_keV(Lo, Hi)/(Hi-Lo);&lt;br /&gt;
  M.plot(e, y; color=coldisk, line=3, width=3);&lt;br /&gt;
  &lt;br /&gt;
  % powerlaw flux&lt;br /&gt;
  variable colpow  = &amp;quot;#006080&amp;quot;;&lt;br /&gt;
  fit_fun(&amp;quot;powerlaw(1)*tbnew_simple(1)&amp;quot;);&lt;br /&gt;
  y = eval_fun_keV(Lo, Hi)/(Hi-Lo);&lt;br /&gt;
  M.plot(e, y; color=colpow, line=1, width=3);&lt;br /&gt;
  &lt;br /&gt;
  % some labels&lt;br /&gt;
  M.xylabel(.98, .85, `\small$N_{\tt powerlaw} = 1.98\pm0.04$`, .5, 0; world0, color=colpow);&lt;br /&gt;
  M.xylabel(.98, .7,  `\small$\Gamma = 1.774\pm0.016$`, .5, 0; world0, color=colpow);&lt;br /&gt;
  M.xylabel(.98, .3,  `\small$N_{\tt diskbb} = (1.4^{+0.3}_{-0.2})\times10^{5}$`, .5, 0; world0, color=coldisk);&lt;br /&gt;
  M.xylabel(.98, .15, `\small$kT_{\rm in} = (0.227\pm0.006)\rm\,keV$`, .5, 0; world0, color=coldisk);&lt;br /&gt;
  M.xylabel(.02, .15, `\small$N_{\rm H}=(7.82\pm0.15)\times10^{21}\rm\,cm^{-2}$`, -.5, 0; world0, color=&amp;quot;col2&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
==== Finally combining all panels ====&lt;br /&gt;
simply using [[isis:slxfig:multiplot|xfig_multiplot]]:&lt;br /&gt;
  xfig_multiplot(X, R, M; xlabel=`Energy [keV]`).render(&amp;quot;EPIC-pn_spectrum.pdf&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
=== The result ===&lt;br /&gt;
[[File:fancy_plot.png]]&lt;br /&gt;
&lt;br /&gt;
Conclusion: An EPIC-pn burst mode spectrum may require a ''gainshift'' correction!&lt;br /&gt;
&lt;br /&gt;
[[Category:SLxfig]]&lt;/div&gt;</summary>
		<author><name>Obst</name></author>
	</entry>
</feed>