Project

General

Profile

Bug #15602

Missing axis labels in CAFAna spectra

Added by Erika Catano Mur over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
02/20/2017
Due date:
% Done:

0%

Estimated time:
Duration:

Description

When some (all?) ana::Spectrum are saved, the histograms in the file ("sp/hist") don't have axis labels, so they don't show up in the validation plots. A fix that should work for all modern 1D spectra (after Revision r23330) is to read the label from (TObjString) "sp/label0". Not sure about 2D, or backwards compatibility...

Associated revisions

Revision 24178 (diff)
Added by Jeremy Wolcott over 2 years ago

copy axis labels from Spectrum objects where appropriate. should fix
Redmine issue #15602.

History

#1 Updated by Jeremy Wolcott over 2 years ago

  • Status changed from New to Accepted

So far I'd just been using the output of h.GetTitle() and splitting on ; , but I think this started before the reorganization of Spectrum that moved the histogram axis titles around. Thanks for suggesting a better approach, though... will look into it.

#2 Updated by Jeremy Wolcott over 2 years ago

  • Status changed from Accepted to Resolved

I believe I've fixed this in novaart:r24178. (At least, it seemed to work in a quick test I did.) Reopen if it doesn't work for you.

#3 Updated by Jeremy Wolcott over 2 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF