Changeset 44e8f48 in sasview for src/sas/sasgui/perspectives/fitting
- Timestamp:
- Sep 10, 2018 9:15:01 AM (6 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, unittest-saveload
- Children:
- 0863065
- Parents:
- d0ce666f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/report_dialog.py
rd0ce666f r44e8f48 72 72 filename = basename + ext 73 73 74 # save figures 75 pictures = [] 76 i = 0 77 for url in self.fig_urls: 78 append_me = url.split(':')[1] 79 pic_name = basename + '_{}'.format(append_me) 80 # save the image for use with pdf writer 81 self.report_list[2][i].savefig(pic_name) 82 pictures.append(pic_name) 83 i += 1 74 # save the images for use with pdf writer 75 pictures = [ 76 '_'.join((basename, url.split(':')[1])) for url in self.fig_urls] 77 for i, pic in enumerate(pictures): 78 self.report_list[2][i].savefig(pic) 84 79 85 80 # translate png references int html from in-memory name to on-disk name
Note: See TracChangeset
for help on using the changeset viewer.