Skip to content

Commit

Permalink
Fixed issue with plot that were not correctly refreshed when using co…
Browse files Browse the repository at this point in the history
…unts vs pixe for data peak/low-res and normalization peak/low-res. This refs #4303
  • Loading branch information
JeanBilheux committed May 18, 2012
1 parent 14e3b1d commit 4a2dbba
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,18 @@ def counts_vs_pixel_distribution(file_path, is_pixel_y=True, callback=None,
"""
basename = os.path.basename(file_path)
ws_base = "__%s" % basename

ws_output_base = ''
if (instrument == 'REFL'):
if isPeak:
type = 'Peak'
else:
type = 'Background'
ws_output_base = type + " - " + basename
if is_pixel_y is False:
x_title = "X pixel"
else:
x_title = "Y pixel"
ws_output_base = type + " - " + basename + " - " + x_title
else:
ws_output_base = "Counts vs Y pixel - %s" % basename
x_title = "Y pixel"
Expand Down

0 comments on commit 4a2dbba

Please sign in to comment.