Morisset / pySSN

Pythonic Spectral Synthesis for Nebulae
Other
4 stars 2 forks source link

Save parameters and Adjust figure included #27

Closed mvfcopetti closed 5 years ago

mvfcopetti commented 5 years ago

The menu was simplified.

'Ask for file name' removed (for File/Save lines, Execute/Post-process, Execute/Instrumental profile).

Lines/Color of line ticks removed.

Lines/Allow editing moved to Parameters/Allow editing line parameters Lines/Update after editing moved to Parameters/Update after editing line parameters

................................................................................

New features in pyssn_qt.py

To save all synthesis and plot parameters

To automatically adjust the limits of the figure

To plot line ticks defined in an external file containing a list of wavelengths in the first column.

nearby line dialog was improved:

Double-click on the figure to select ALL lines in the synthesis

Select a wavelength in the dialog to shown a tick and to navigate the spectrum

Select one or more ions and press 'Filter selected ions' to filter the ion

New parameters in init_defaults.py

Automatically save all synthesis and plot parameters at exit save_parameters_on_exit = False

Save parameters filename save_parameters_filename = 'last_init.py'

Wavelength correction table; ex. [(lambda1,delta1), (lambda2,delta2), ... ] lambda_shift_table = None

Object velocity interpolation table; ex. [(lambda1,v1), (lambda2,v2), ... ] obj_velo_table = None

The fraction of height reserved for space between subplots fig_hspace=0.05

The bottom limit of the figure fig_bottom=0.08

The left limit of the figure fig_left=0.05

The right limit of the figure fig_right=0.995

The top limit of the figure fig_top=0.995

Automatically adjust limits of the figure fig_adjust = False

List of plot legend formats for different line processes = [ [ [list of process codes], format ], ... ] process_code_format = [ [[0,1,5,6,9], '{} (rec)' ], [[2], '{} (die)'], [[3], '[{}]'], [[7,4], '{} (fl)'], [[8], '{} (chEx)'] ]