source: trunk/templates/uvmapgenerator.html@ 17

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

initial import

File size: 894 bytes
Line 
1<%inherit file="base.html"/>
2
3<!-- do the plotting -->
4<%
5import matplotlib.pyplot as plt
6import os.path
7
8fig, ax = plt.subplots()
9bxby = context['data']['uvmapgenerator']['bxby']
10ax.plot(bxby[:,0], bxby[:,1], 'go-')
11ax.grid()
12ax.axis('equal')
13
14plt.savefig(os.path.join(context['dirname'], 'uvmap.png'))
15plt.close()
16%>
17
18 <div class="row-fluid">
19 <table class="table table-condensed" summary="FTS parameters">
20 <tbody>
21 <%
22 uvmap = context['data']['uvmapgenerator']
23 %>
24 % for k,v in uvmap.items():
25 <!-- don't render large arrays-->
26 % if k not in ['bxby']:
27 <tr>
28 <td>${k}</td>
29 <td>${v}</td>
30 </tr>
31 % endif
32 % endfor
33 </tbody>
34 </table>
35 <div>
36
37<!-- link to the plot from html -->
38
39<img src='uvmap.png' alt="The UV map should appear here">
Note: See TracBrowser for help on using the repository browser.