Changeset 26
- Timestamp:
- May 6, 2014 1:40:47 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/templates/sourcespectrum.html
r17 r26 8 8 plt.figure() 9 9 10 print 'context'11 print context12 13 10 sourceid = context['sourceid'] 14 print sourceid15 11 spectrum = context['data']['skygenerator']['sources'][sourceid]['spectrum'] 16 print 'here'17 12 frequency_axis = context['data']['skygenerator']['frequency axis'] 18 print 'here1'19 13 20 14 plt.plot(frequency_axis, spectrum) 21 15 plt.title('Source %s' % sourceid) 22 print 'here2'23 16 24 17 plt.savefig(os.path.join(context['dirname'], 'sourcespectrum%s.png' % sourceid))
Note:
See TracChangeset
for help on using the changeset viewer.