<?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=Angstrom_to_keV_axis_transformation_%28xfig_example%29</id>
	<title>Angstrom to keV axis transformation (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=Angstrom_to_keV_axis_transformation_%28xfig_example%29"/>
	<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Angstrom_to_keV_axis_transformation_(xfig_example)&amp;action=history"/>
	<updated>2026-04-16T03:12:22Z</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=Angstrom_to_keV_axis_transformation_(xfig_example)&amp;diff=1100&amp;oldid=prev</id>
		<title>Obst: Obst moved page Example: Angstrom to keV axis transformation to Angstrom to keV axis transformation (xfig example) without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Angstrom_to_keV_axis_transformation_(xfig_example)&amp;diff=1100&amp;oldid=prev"/>
		<updated>2018-04-17T08:46:36Z</updated>

		<summary type="html">&lt;p&gt;Obst moved page &lt;a href=&quot;/wiki/index.php?title=Example:_Angstrom_to_keV_axis_transformation&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Example: Angstrom to keV axis transformation (page does not exist)&quot;&gt;Example: Angstrom to keV axis transformation&lt;/a&gt; to &lt;a href=&quot;/wiki/index.php/Angstrom_to_keV_axis_transformation_(xfig_example)&quot; title=&quot;Angstrom to keV axis transformation (xfig example)&quot;&gt;Angstrom to keV axis transformation (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 08:46, 17 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=Angstrom_to_keV_axis_transformation_(xfig_example)&amp;diff=995&amp;oldid=prev</id>
		<title>Gokus: Created page with &quot;  Category:SLxfig ====== Angstrom to keV (and back) coordinate axis transformation ======  The important thing happens in 4 lines at the very beginning; the rest is my usa...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Angstrom_to_keV_axis_transformation_(xfig_example)&amp;diff=995&amp;oldid=prev"/>
		<updated>2018-04-13T12:20:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  &lt;a href=&quot;/wiki/index.php/Category:SLxfig&quot; title=&quot;Category:SLxfig&quot;&gt;Category:SLxfig&lt;/a&gt; ====== Angstrom to keV (and back) coordinate axis transformation ======  The important thing happens in 4 lines at the very beginning; the rest is my usa...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:SLxfig]]&lt;br /&gt;
====== Angstrom to keV (and back) coordinate axis transformation ======&lt;br /&gt;
&lt;br /&gt;
The important thing happens in 4 lines at the very beginning; the rest is my usage of the transformation, in case anybody needs it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
require(&amp;quot;isisscripts&amp;quot;);&lt;br /&gt;
require(&amp;quot;../common_pars.sl&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
%% define coordinate transformation&lt;br /&gt;
private define aa_to_keV (val, opt){&lt;br /&gt;
  return _A(val);&lt;br /&gt;
}&lt;br /&gt;
xfig_plot_add_transform(&amp;quot;aa_to_keV&amp;quot;,&amp;amp;aa_to_keV,&amp;amp;aa_to_keV,&amp;quot;&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
%%%%%&lt;br /&gt;
&lt;br /&gt;
variable ll = read_data_from_write_plot(&amp;quot;../data/all_unfold_1.dat&amp;quot;;no_mod);&lt;br /&gt;
variable hh = read_data_from_write_plot(&amp;quot;../data/all_unfold_0.dat&amp;quot;;no_mod);&lt;br /&gt;
&lt;br /&gt;
%delta angstrom&lt;br /&gt;
variable da = 3.125;&lt;br /&gt;
&lt;br /&gt;
%variable Major = reverse([1:10]);&lt;br /&gt;
%variable Minor = reverse([1:100]*0.1);&lt;br /&gt;
&lt;br /&gt;
variable Major = [9,8,7,6,5,4,3,2.5,2,1.8,1.6,1.4,1.2,1.1,1,0.9];&lt;br /&gt;
variable Minor = [reverse([16:100]*0.1),reverse([8*4:16*4]/40.)];&lt;br /&gt;
&lt;br /&gt;
variable pl1 = xfig_plot_new(width*2,height*(2./3));&lt;br /&gt;
pl1.world(1.3,1.7+da,-0.001,0.35);&lt;br /&gt;
pl1.world2(_A(1.3),_A(1.7+da),-0.001,0.32);&lt;br /&gt;
pl1.x2axis(;wcs=&amp;quot;aa_to_keV&amp;quot;,major=Major,minor=Minor);&lt;br /&gt;
pl1.y2axis(;ticlabels=0);&lt;br /&gt;
&lt;br /&gt;
pl1.hplot(ll.lo,ll.val;color=lcol,depth=1);&lt;br /&gt;
pl1.plot([ll.lo+ll.hi]/2,ll.val,ll.err;sym=&amp;quot;point&amp;quot;,color=lecol,depth=2);&lt;br /&gt;
pl1.hplot(hh.lo,hh.val;color=hcol,depth=1);&lt;br /&gt;
pl1.plot([hh.lo+hh.hi]/2,hh.val,hh.err;sym=&amp;quot;point&amp;quot;,color=hecol,depth=2);&lt;br /&gt;
pl1.shade_region([1.5+da,1.7+da,1.7+da,1.5+da],&lt;br /&gt;
		 [-0.001,-0.001,0.35,0.35];color=&amp;quot;silver&amp;quot;,fillcolor=&amp;quot;silver&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
pl1.xlabel(&amp;quot;Wavelength [\AA]&amp;quot;R);&lt;br /&gt;
pl1.ylabel(&amp;quot;Photons cm$^{-2}$ s$^{-1}$ keV$^{-1}$&amp;quot;R);&lt;br /&gt;
pl1.x2label(&amp;quot;Energy [keV]&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
%pl1.render(&amp;quot;zoom.pdf&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
variable pl2 = xfig_plot_new(width*2,height*(2./3));&lt;br /&gt;
pl2.world(1.3+da,1.7+2*da,-0.001,0.07);&lt;br /&gt;
pl2.world2(_A(1.3+da),_A(1.7+2*da),0,0.32);&lt;br /&gt;
pl2.y2axis(;ticlabels=0);&lt;br /&gt;
pl2.x2axis(;wcs=&amp;quot;aa_to_keV&amp;quot;,major=Major,minor=Minor);&lt;br /&gt;
&lt;br /&gt;
pl2.hplot(ll.lo,ll.val;color=lcol,depth=1);&lt;br /&gt;
pl2.plot([ll.lo+ll.hi]/2,ll.val,ll.err;sym=&amp;quot;point&amp;quot;,color=lecol,depth=2);&lt;br /&gt;
pl2.hplot(hh.lo,hh.val;color=hcol,depth=1);&lt;br /&gt;
pl2.plot([hh.lo+hh.hi]/2,hh.val,hh.err;sym=&amp;quot;point&amp;quot;,color=hecol,depth=2);&lt;br /&gt;
pl2.shade_region([1.3+da,1.5+da,1.5+da,1.3+da],&lt;br /&gt;
		 [-0.001,-0.001,0.35,0.35];color=&amp;quot;silver&amp;quot;,fillcolor=&amp;quot;silver&amp;quot;);&lt;br /&gt;
pl2.shade_region([1.5+da*2,1.7+da*2,1.7+da*2,1.5+da*2],&lt;br /&gt;
		 [-0.001,-0.001,0.35,0.35];color=&amp;quot;silver&amp;quot;,fillcolor=&amp;quot;silver&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
pl2.xlabel(&amp;quot;Wavelength [\AA]&amp;quot;R);&lt;br /&gt;
pl2.ylabel(&amp;quot;Photons cm$^{-2}$ s$^{-1}$ keV$^{-1}$&amp;quot;R);&lt;br /&gt;
pl2.x2label(&amp;quot;Energy [keV]&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
variable pl3 = xfig_plot_new(width*2,height*(2./3));&lt;br /&gt;
pl3.world(1.3+2*da,1.7+3*da,-0.001,0.025);&lt;br /&gt;
pl3.world2(_A(1.3+2*da),_A(1.7+3*da),0,0.32);&lt;br /&gt;
pl3.y2axis(;ticlabels=0);&lt;br /&gt;
pl3.x2axis(;wcs=&amp;quot;aa_to_keV&amp;quot;,major=Major,minor=Minor);&lt;br /&gt;
&lt;br /&gt;
pl3.hplot(ll.lo,ll.val;color=lcol,depth=1);&lt;br /&gt;
pl3.plot([ll.lo+ll.hi]/2,ll.val,ll.err;sym=&amp;quot;point&amp;quot;,color=lecol,depth=2);&lt;br /&gt;
pl3.hplot(hh.lo,hh.val;color=hcol,depth=1);&lt;br /&gt;
pl3.plot([hh.lo+hh.hi]/2,hh.val,hh.err;sym=&amp;quot;point&amp;quot;,color=hecol,depth=2);&lt;br /&gt;
pl3.shade_region([1.3+2*da,1.5+2*da,1.5+2*da,1.3+2*da],&lt;br /&gt;
		 [-0.001,-0.001,0.35,0.35];color=&amp;quot;silver&amp;quot;,fillcolor=&amp;quot;silver&amp;quot;);&lt;br /&gt;
pl3.shade_region([1.5+da*3,1.7+da*3,1.7+da*3,1.5+da*3],&lt;br /&gt;
		 [-0.001,-0.001,0.35,0.35];color=&amp;quot;silver&amp;quot;,fillcolor=&amp;quot;silver&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
pl3.xlabel(&amp;quot;Wavelength [\AA]&amp;quot;R);&lt;br /&gt;
pl3.ylabel(&amp;quot;Photons cm$^{-2}$ s$^{-1}$ keV$^{-1}$&amp;quot;R);&lt;br /&gt;
pl3.x2label(&amp;quot;Energy [keV]&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
variable pl4 = xfig_plot_new(width*2,height*(2./3));&lt;br /&gt;
pl4.world(1.3+3*da,1.7+4*da,-0.001,0.01);&lt;br /&gt;
pl4.world2(_A(1.3+3*da),_A(1.7+4*da),0,0.32);&lt;br /&gt;
pl4.y2axis(;ticlabels=0);&lt;br /&gt;
pl4.x2axis(;wcs=&amp;quot;aa_to_keV&amp;quot;,major=Major,minor=Minor);&lt;br /&gt;
&lt;br /&gt;
pl4.hplot(ll.lo,ll.val;color=lcol,depth=1);&lt;br /&gt;
pl4.plot([ll.lo+ll.hi]/2,ll.val,ll.err;sym=&amp;quot;point&amp;quot;,color=lecol,depth=2);&lt;br /&gt;
pl4.hplot(hh.lo,hh.val;color=hcol,depth=1);&lt;br /&gt;
pl4.plot([hh.lo+hh.hi]/2,hh.val,hh.err;sym=&amp;quot;point&amp;quot;,color=hecol,depth=2);&lt;br /&gt;
pl4.shade_region([1.3+3*da,1.5+3*da,1.5+3*da,1.3+3*da],&lt;br /&gt;
		 [-0.001,-0.001,0.35,0.35];color=&amp;quot;silver&amp;quot;,fillcolor=&amp;quot;silver&amp;quot;);&lt;br /&gt;
%pl4.shade_region([1.5+da*4,1.7+da*4,1.7+da*4,1.5+da*4],&lt;br /&gt;
%		 [-0.001,-0.001,0.35,0.35];color=&amp;quot;silver&amp;quot;,fillcolor=&amp;quot;silver&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
pl4.xlabel(&amp;quot;Wavelength [\AA]&amp;quot;R);&lt;br /&gt;
pl4.ylabel(&amp;quot;Photons cm$^{-2}$ s$^{-1}$ keV$^{-1}$&amp;quot;R);&lt;br /&gt;
pl4.x2label(&amp;quot;Energy [keV]&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
xfig_new_vbox_compound(pl1,pl2,pl3,pl4,1).render(&amp;quot;zoom.pdf&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
print(&amp;quot;STACK:&amp;quot;);&lt;br /&gt;
_print_stack;&lt;br /&gt;
exit;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gokus</name></author>
	</entry>
</feed>