Line | |
---|
1 | <%inherit file="base.html"/>
|
---|
2 |
|
---|
3 | <!-- do the plotting -->
|
---|
4 | <%
|
---|
5 | import matplotlib.pyplot as plt
|
---|
6 | import os.path
|
---|
7 |
|
---|
8 | fig, ax = plt.subplots()
|
---|
9 | bxby = context['data']['uvmapgenerator']['bxby']
|
---|
10 | ax.plot(bxby[:,0], bxby[:,1], 'go-')
|
---|
11 | ax.grid()
|
---|
12 | ax.axis('equal')
|
---|
13 |
|
---|
14 | plt.savefig(os.path.join(context['dirname'], 'uvmap.png'))
|
---|
15 | plt.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.