Allow rescaling ylim with interactive diff plot
This commit is contained in:
parent
c0449f2e18
commit
876e0f8d3d
2 changed files with 122 additions and 50 deletions
|
|
@ -358,9 +358,18 @@ def read_data(data, options={}, index=0):
|
|||
|
||||
def apply_offset(diffractogram, wavelength, index, options):
|
||||
|
||||
options['current_offset_y'] = options['offset_y']
|
||||
if 'current_offset_y' not in options.keys():
|
||||
options['current_offset_y'] = options['offset_y']
|
||||
else:
|
||||
if options['current_offset_y'] != options['offset_y']:
|
||||
options['offset_change'] = True
|
||||
|
||||
options['current_offset_y'] = options['offset_y']
|
||||
|
||||
options['current_offset_x'] = options['offset_x']
|
||||
|
||||
|
||||
|
||||
#Apply offset along y-axis
|
||||
diffractogram['I'] = diffractogram['I_org'] # Reset intensities
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue