source: trunk/templates/skymodelplane.html@ 17

Last change on this file since 17 was 17, checked in by JohnLightfoot, 10 years ago

initial import

File size: 759 bytes
Line 
1<%inherit file="base.html"/>
2
3<!-- do the plotting -->
4<%
5import matplotlib.pyplot as plt
6import os.path
7
8plt.figure()
9
10iwn = context['iwn']
11sky_image = context['data']['skygenerator']['sky model'][:,:,iwn]
12spatial_axis = context['data']['skygenerator']['spatial axis']
13
14plt.imshow(sky_image, interpolation='nearest', origin='lower',
15 aspect='equal', extent=[spatial_axis[0], spatial_axis[-1],
16 spatial_axis[0], spatial_axis[-1]])
17plt.axis('image')
18
19wn = context['wn']
20plt.title('Sky model plane %6.4gcm-1' % wn)
21
22plt.colorbar(orientation='vertical')
23plt.savefig(os.path.join(context['dirname'], 'skymodelplane%s.png' % wn))
24plt.close()
25%>
26
27<!-- link to the plot from html -->
28
29<img src='skymodelplane${wn}.png' alt="The sky model should appear here<br>">
Note: See TracBrowser for help on using the repository browser.