Rev | Line | |
---|
[17] | 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']
|
---|
[49] | 10 | ax.plot(list(bxby[:,0]) + list(-bxby[:,0]), list(bxby[:,1]) + list(-bxby[:,1]),
|
---|
| 11 | 'go')
|
---|
[17] | 12 | ax.grid()
|
---|
[49] | 13 | plt.xlabel('u (m)')
|
---|
| 14 | plt.ylabel('v (m)')
|
---|
| 15 | plt.title('u-v plane')
|
---|
[17] | 16 | ax.axis('equal')
|
---|
| 17 |
|
---|
| 18 | plt.savefig(os.path.join(context['dirname'], 'uvmap.png'))
|
---|
| 19 | plt.close()
|
---|
| 20 | %>
|
---|
| 21 |
|
---|
| 22 | <div class="row-fluid">
|
---|
| 23 | <table class="table table-condensed" summary="FTS parameters">
|
---|
| 24 | <tbody>
|
---|
| 25 | <%
|
---|
| 26 | uvmap = context['data']['uvmapgenerator']
|
---|
| 27 | %>
|
---|
| 28 | % for k,v in uvmap.items():
|
---|
| 29 | <!-- don't render large arrays-->
|
---|
[49] | 30 | % if k not in ['bxby', 'obs_framework']:
|
---|
[17] | 31 | <tr>
|
---|
| 32 | <td>${k}</td>
|
---|
| 33 | <td>${v}</td>
|
---|
| 34 | </tr>
|
---|
| 35 | % endif
|
---|
| 36 | % endfor
|
---|
| 37 | </tbody>
|
---|
| 38 | </table>
|
---|
| 39 | <div>
|
---|
| 40 |
|
---|
| 41 | <!-- link to the plot from html -->
|
---|
| 42 |
|
---|
| 43 | <img src='uvmap.png' alt="The UV map should appear here">
|
---|
Note:
See
TracBrowser
for help on using the repository browser.