<?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=Satellite_Picture_Zoom_%28xfig_example%29</id>
	<title>Satellite Picture Zoom (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=Satellite_Picture_Zoom_%28xfig_example%29"/>
	<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Satellite_Picture_Zoom_(xfig_example)&amp;action=history"/>
	<updated>2026-04-30T15:53:42Z</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=Satellite_Picture_Zoom_(xfig_example)&amp;diff=1247&amp;oldid=prev</id>
		<title>Obst at 13:23, 18 April 2018</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Satellite_Picture_Zoom_(xfig_example)&amp;diff=1247&amp;oldid=prev"/>
		<updated>2018-04-18T13:23:42Z</updated>

		<summary type="html">&lt;p&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 13: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;[[Category: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;[[Category: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;[[File:cygx1_iras.png]]&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;[[File:cygx1_iras.png&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|500px&lt;/ins&gt;]]&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;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;----&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;----&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=Satellite_Picture_Zoom_(xfig_example)&amp;diff=1130&amp;oldid=prev</id>
		<title>Obst: Obst moved page Example: Satellite Picture Zoom to Satellite Picture Zoom (xfig example) without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Satellite_Picture_Zoom_(xfig_example)&amp;diff=1130&amp;oldid=prev"/>
		<updated>2018-04-17T09:14:38Z</updated>

		<summary type="html">&lt;p&gt;Obst moved page &lt;a href=&quot;/wiki/index.php?title=Example:_Satellite_Picture_Zoom&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Example: Satellite Picture Zoom (page does not exist)&quot;&gt;Example: Satellite Picture Zoom&lt;/a&gt; to &lt;a href=&quot;/wiki/index.php/Satellite_Picture_Zoom_(xfig_example)&quot; title=&quot;Satellite Picture Zoom (xfig example)&quot;&gt;Satellite Picture Zoom (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 09:14, 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=Satellite_Picture_Zoom_(xfig_example)&amp;diff=1004&amp;oldid=prev</id>
		<title>Gokus: Created page with &quot;  Category:SLxfig File:cygx1_iras.png  ----  &lt;pre&gt; require(&quot;isisscripts&quot;); require(&quot;wcsfuns&quot;);  %variable datapath=&quot;../&quot;; variable datapath=&quot;/home/boeck/work/cygX1/ima...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.sternwarte.uni-erlangen.de/wiki/index.php?title=Satellite_Picture_Zoom_(xfig_example)&amp;diff=1004&amp;oldid=prev"/>
		<updated>2018-04-13T12:43:30Z</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; &lt;a href=&quot;/wiki/index.php/File:Cygx1_iras.png&quot; title=&quot;File:Cygx1 iras.png&quot;&gt;File:cygx1_iras.png&lt;/a&gt;  ----  &amp;lt;pre&amp;gt; require(&amp;quot;isisscripts&amp;quot;); require(&amp;quot;wcsfuns&amp;quot;);  %variable datapath=&amp;quot;../&amp;quot;; variable datapath=&amp;quot;/home/boeck/work/cygX1/ima...&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;
[[File:cygx1_iras.png]]&lt;br /&gt;
&lt;br /&gt;
----&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;wcsfuns&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
%variable datapath=&amp;quot;../&amp;quot;;&lt;br /&gt;
variable datapath=&amp;quot;/home/boeck/work/cygX1/images/&amp;quot;;&lt;br /&gt;
variable height = 18;&lt;br /&gt;
&lt;br /&gt;
variable box_col = &amp;quot;#88CCFF&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
variable cygX1_lon = 299.590333 ;&lt;br /&gt;
variable cygX1_lat =  35.201611 ;&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%% user defined color scheme&lt;br /&gt;
variable R,G,B;&lt;br /&gt;
R=nint ([Integer_Type[125],[0:255:#130]]);&lt;br /&gt;
G=nint ([[0:0:#55],[0:255:#150],[255:255:#50]]);&lt;br /&gt;
B=nint ([[0:255:#155], ones(100)*255]);&lt;br /&gt;
png_add_colormap(&amp;quot;blue&amp;quot;,(R*0x10000+G*0x100+B)); &lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
&lt;br /&gt;
variable img = fits_read_img (datapath+&amp;quot;CygX1-HI_0408MHz.fits&amp;quot;);&lt;br /&gt;
variable wcs = fitswcs_get_img_wcs (datapath+&amp;quot;CygX1-HI_0408MHz.fits&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
img = log(img-0.8*min(img));&lt;br /&gt;
&lt;br /&gt;
variable size = array_shape(img);&lt;br /&gt;
variable x = size[1];&lt;br /&gt;
variable y = size[0];&lt;br /&gt;
&lt;br /&gt;
variable ph = height;&lt;br /&gt;
variable pw = ph*x/double(y);&lt;br /&gt;
&lt;br /&gt;
variable p = xfig_plot_new (pw,ph);&lt;br /&gt;
variable p_xmin = -0.5;&lt;br /&gt;
variable p_xmax = x+0.5;&lt;br /&gt;
variable p_ymin = -0.5;&lt;br /&gt;
variable p_ymax = y+0.5;&lt;br /&gt;
p.world(p_xmin,p_xmax,p_ymin,p_ymax);&lt;br /&gt;
p.plot_png (img; cmap = &amp;quot;blue&amp;quot;, depth = 100);&lt;br /&gt;
p.axis(;off);&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%% plot source&lt;br /&gt;
variable clr = &amp;quot;yellow&amp;quot;;&lt;br /&gt;
variable pos_y,pos_x;&lt;br /&gt;
(pos_y,pos_x) = wcsfuns_project (wcs, cygX1_lon, cygX1_lat);&lt;br /&gt;
p.plot(pos_x,pos_y; sym=&amp;quot;+&amp;quot;, color=clr,depth=80); &lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%% plot grid&lt;br /&gt;
variable gridclr = &amp;quot;#4466DD&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
variable l_axis = [120:20:#200];&lt;br /&gt;
variable b_axis = [-50:60:#200];&lt;br /&gt;
&lt;br /&gt;
variable ra,dec;&lt;br /&gt;
(ra,dec) = RAdec_from_galLB (l_axis,0);&lt;br /&gt;
(pos_y,pos_x) = wcsfuns_project (wcs, ra,dec);&lt;br /&gt;
p.plot(pos_x,pos_y; width=2,color=gridclr,depth=84); &lt;br /&gt;
&lt;br /&gt;
%%%% l=0 axis is outside of plot range&lt;br /&gt;
% (ra,dec) = RAdec_from_galLB (0,b_axis);&lt;br /&gt;
% (pos_y,pos_x) = wcsfuns_project (wcs, ra,dec);&lt;br /&gt;
% p.plot(pos_x,pos_y; width=2,color=gridclr,depth=84); &lt;br /&gt;
&lt;br /&gt;
variable v;&lt;br /&gt;
foreach v ([[-50:-10:10],[10:60:10]])&lt;br /&gt;
{&lt;br /&gt;
  (ra,dec) = RAdec_from_galLB (l_axis,v);&lt;br /&gt;
  (pos_y,pos_x) = wcsfuns_project (wcs, ra,dec);&lt;br /&gt;
  p.plot(pos_x,pos_y; width=1,line=1,color=gridclr,depth=90); &lt;br /&gt;
}&lt;br /&gt;
foreach v ([[20:120:10]])&lt;br /&gt;
{&lt;br /&gt;
  (ra,dec) = RAdec_from_galLB (v,b_axis);&lt;br /&gt;
  (pos_y,pos_x) = wcsfuns_project (wcs, ra,dec);&lt;br /&gt;
  p.plot(pos_x,pos_y;  width=1,line=1,color=gridclr,depth=90); &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%% grid labels&lt;br /&gt;
foreach v ([[30:120:10]])&lt;br /&gt;
{&lt;br /&gt;
  (pos_y,pos_x) = wcsfuns_project (wcs, RAdec_from_galLB ( v, 0 ) );&lt;br /&gt;
  p.xylabel(pos_x,pos_y,sprintf(&amp;quot;\$%d\^\\circ\$&amp;quot;,v),0.4,1.1; color=gridclr,depth=87); &lt;br /&gt;
}&lt;br /&gt;
foreach v ([[10:40:10]])&lt;br /&gt;
{&lt;br /&gt;
  (pos_y,pos_x) = wcsfuns_project (wcs, RAdec_from_galLB ( 60, v ) );&lt;br /&gt;
  p.xylabel(pos_x,pos_y,sprintf(&amp;quot;+\$%d\^\\circ\$&amp;quot;,v),-0.1,0.8; color=gridclr,depth=87); &lt;br /&gt;
}&lt;br /&gt;
foreach v ([[-40:-10:10]])&lt;br /&gt;
{&lt;br /&gt;
  (pos_y,pos_x) = wcsfuns_project (wcs, RAdec_from_galLB ( 60, v ) );&lt;br /&gt;
  p.xylabel(pos_x,pos_y,sprintf(&amp;quot;\$%d\^\\circ\$&amp;quot;,v),-0.1,0.8; color=gridclr,depth=87); &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
p.xylabel(0.75,0.95,&amp;quot;408\\,MHz&amp;quot;,0.5,0.5; color=box_col,world0,depth=70); &lt;br /&gt;
&lt;br /&gt;
% p.render(&amp;quot;HI_0408Mhz_large.pdf&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
%%%%%%%% plot IRAS image&lt;br /&gt;
&lt;br /&gt;
variable f = datapath+&amp;quot;CygX1-IRAS.fits&amp;quot;;&lt;br /&gt;
variable wcs_iras = fitswcs_get_img_wcs(f);&lt;br /&gt;
&lt;br /&gt;
variable img = fits_read_img(f);&lt;br /&gt;
variable x = length(img[0,*]);&lt;br /&gt;
variable y = length(img[*,0]);&lt;br /&gt;
&lt;br /&gt;
% use some transformations/cuts/... to obtain a reasonable color scaling&lt;br /&gt;
img = log(img);&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%%% determine wcs of coordinate axis&lt;br /&gt;
variable N = 500;&lt;br /&gt;
variable c0 = ones(N)*0.0;&lt;br /&gt;
variable x_arr = [0:x:#N];&lt;br /&gt;
variable y_arr = [0:y:#N];&lt;br /&gt;
variable x1ra , x1dec,  x2ra , x2dec, y1ra , y1dec,  y2ra , y2dec;&lt;br /&gt;
(x1ra , x1dec) = wcsfuns_deproject (wcs_iras, c0   , x_arr ); x1ra = pos_modulo(x1ra,360);&lt;br /&gt;
(x2ra , x2dec) = wcsfuns_deproject (wcs_iras, c0+y , x_arr ); x2ra = pos_modulo(x2ra,360);&lt;br /&gt;
(y1ra , y1dec) = wcsfuns_deproject (wcs_iras, y_arr, c0    ); y1ra = pos_modulo(y1ra,360);&lt;br /&gt;
(y2ra , y2dec) = wcsfuns_deproject (wcs_iras, y_arr, c0+x  ); y2ra = pos_modulo(y2ra,360);&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%% determine ticmarks for x1axis&lt;br /&gt;
variable m =  15*(19 + [35:80:5]/60.0);&lt;br /&gt;
variable m5 = 15*(19 + [35:80:1]/60.0);&lt;br /&gt;
variable x1_ticlables = [35:80:5] mod 60;&lt;br /&gt;
variable x1_string_tic = array_map(String_Type, &amp;amp;sprintf, &amp;quot;%02dm&amp;quot; ,x1_ticlables);&lt;br /&gt;
variable index = where (x1_ticlables == 0);&lt;br /&gt;
x1_string_tic[index] = `20h\,`+x1_string_tic[index];&lt;br /&gt;
variable r = associate_arrays (m5, x1ra);&lt;br /&gt;
variable i_x1_h = r.index[where(r.index != 0 and r.index != N-1)];&lt;br /&gt;
r = associate_arrays (m5, x1ra);&lt;br /&gt;
variable i_x1_minor = r.index[where(r.index != 0 and r.index != N-1)];&lt;br /&gt;
r = associate_arrays (m, x1ra);&lt;br /&gt;
variable i_x1_major = where(r.index != 0 and r.index != N-1);&lt;br /&gt;
variable x1_major = x_arr[r.index[i_x1_major]];&lt;br /&gt;
x1_string_tic = x1_string_tic[i_x1_major];&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%% determine ticmarks for x2axis&lt;br /&gt;
variable r = associate_arrays (m5, x2ra);&lt;br /&gt;
variable i_x2_h = r.index[where(r.index != 0 and r.index != N-1)];&lt;br /&gt;
r = associate_arrays (m5, x2ra);&lt;br /&gt;
variable i_x2_minor = r.index[where(r.index != 0 and r.index != N-1)];&lt;br /&gt;
r = associate_arrays (m, x2ra);&lt;br /&gt;
variable i_x2_major = where(r.index != 0 and r.index != N-1);&lt;br /&gt;
variable x2_major = x_arr[r.index[i_x2_major]];&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%% determine x (ra) grid&lt;br /&gt;
variable x_grid = m[[i_x1_major,i_x2_major]]; x_grid = x_grid[unique(x_grid)];&lt;br /&gt;
variable x_ymin, x_ymax; (x_ymin, x_ymax) = min_max(x1dec,x2dec);&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%% determine ticmarks for y1axis&lt;br /&gt;
variable d = [30:40];&lt;br /&gt;
variable d_10min = [30:40:#(10*6 + 1 )];&lt;br /&gt;
r = associate_arrays (d_10min, y1dec);&lt;br /&gt;
variable i_y1_minor = r.index[where(r.index != 0 and r.index != N-1)];&lt;br /&gt;
r = associate_arrays (d, y1dec);&lt;br /&gt;
variable i_y1_major = where(r.index != 0 and r.index != N-1);&lt;br /&gt;
variable y1_ticlables = d[i_y1_major];&lt;br /&gt;
variable y1_string_tic = array_map(String_Type, &amp;amp;sprintf, `%d$^{\circ}$`, d);&lt;br /&gt;
y1_string_tic = y1_string_tic[i_y1_major];&lt;br /&gt;
variable y1_major = y_arr[r.index[i_y1_major]];&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%% determine ticmarks for y2axis&lt;br /&gt;
r = associate_arrays (d_10min, y2dec);&lt;br /&gt;
variable i_y2_minor = r.index[where(r.index != 0 and r.index != N-1)];&lt;br /&gt;
r = associate_arrays (d, y2dec);&lt;br /&gt;
variable i_y2_major = where(r.index != 0 and r.index != N-1);&lt;br /&gt;
variable y2_ticlables = d[i_y2_major];&lt;br /&gt;
variable y2_major = y_arr[r.index[i_y2_major]];&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%% determine y (dec) grid&lt;br /&gt;
variable y_grid = d[[i_y1_major,i_y2_major]]; y_grid = y_grid[unique(y_grid)];&lt;br /&gt;
variable y_xmin, y_xmax; (y_xmin, y_xmax) = min_max(y1ra,y2ra);&lt;br /&gt;
&lt;br /&gt;
variable axis_col = &amp;quot;gray&amp;quot;;&lt;br /&gt;
variable grid_col = &amp;quot;gray&amp;quot;;&lt;br /&gt;
variable pheight = height;&lt;br /&gt;
variable pwidth  = pheight/double(y)*x;&lt;br /&gt;
&lt;br /&gt;
variable iras = xfig_plot_new(pwidth, pheight);&lt;br /&gt;
iras.world(0,x,0,y);&lt;br /&gt;
iras.axis(;color=axis_col);&lt;br /&gt;
iras.x1axis(; major = x1_major, minor = x_arr[i_x1_minor], ticlabels=x1_string_tic);%x1_ticlables);&lt;br /&gt;
iras.x2axis(; major = x2_major, minor = x_arr[i_x2_minor], ticlabels=0); %x2_ticlables);&lt;br /&gt;
iras.y2axis(; major = y1_major, minor = y_arr[i_y1_minor], ticlabels=y1_string_tic);%y1_ticlables);&lt;br /&gt;
iras.y1axis(; major = y2_major, minor = y_arr[i_y2_minor], ticlabels=0); %y2_ticlables);&lt;br /&gt;
iras.y2label(&amp;quot;Declination&amp;quot;);&lt;br /&gt;
iras.xlabel(&amp;quot;Right Ascension&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
iras.plot_png( img; cmap = &amp;quot;copper&amp;quot;) ;&lt;br /&gt;
&lt;br /&gt;
(pos_y,pos_x) = wcsfuns_project (wcs_iras, cygX1_lon, cygX1_lat);&lt;br /&gt;
iras.plot(pos_x,pos_y; sym=&amp;quot;+&amp;quot;, color=clr,depth=80); &lt;br /&gt;
iras.xylabel(pos_x,pos_y,&amp;quot;Cygnus X-1&amp;quot;,-0.6,0; color=clr,depth=80); &lt;br /&gt;
iras.xylabel(0.95,0.95,&amp;quot;IRAS&amp;quot;,0.5,0.5; color=&amp;quot;orange2&amp;quot;,world0,depth=70);&lt;br /&gt;
&lt;br /&gt;
% shift image by the width of the first one for compound&lt;br /&gt;
iras.translate(vector(pwidth,0,0));&lt;br /&gt;
p.add_object(iras); &lt;br /&gt;
&lt;br /&gt;
%%%%%%%% plot zoom-in box&lt;br /&gt;
variable box_x, box_y;&lt;br /&gt;
(box_y,box_x) = wcsfuns_project (wcs,&lt;br /&gt;
				 [ x1ra[[0,-1]], x2ra[[-1,0]], x1ra[0]],&lt;br /&gt;
				 [ x1dec[[0,-1]],x2dec[[-1,0]],x1dec[0] ]&lt;br /&gt;
				); % using only corners (if curved, project complete axes)&lt;br /&gt;
p.plot(box_x,box_y; color = box_col);&lt;br /&gt;
p.plot( [box_x[0],p_xmax], [box_y[0],p_ymin] ; color = box_col);&lt;br /&gt;
p.plot( [box_x[-2],p_xmax], [box_y[-2],p_ymax] ; color = box_col);&lt;br /&gt;
&lt;br /&gt;
p.render(&amp;quot;CygX1.pdf&amp;quot;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gokus</name></author>
	</entry>
</feed>