hyperspy/hyperspy — Issue #24: Image.plot_principal_components_maps does not work with ordinary Image stacks
Author: francisco-dlp
Created: 2011-10-14 11:34:26+00:00
State: open

Here is the errors that are raised:

In [4]: s.plot_principal_components_maps(2)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/home/fjd29/ in ()
----> 1 s.plot_principal_components_maps(2)

/home/fjd29/Python/hyperspy/hyperspy/signals/image.py in plot_principal_components_maps(self, comp_ids, cmap, recmatrix, plot, pc, on_peaks, save_figs)
631 return self.plot_maps(components=comp_ids,mva_type='pca',cmap=cmap,
632 scores=recmatrix, factors=pc, on_peaks=on_peaks,
--> 633 save_figs=save_figs)
634
635 def plot_independent_components_maps(self, comp_ids=None, cmap=plt.cm.gray,

/home/fjd29/Python/hyperspy/hyperspy/signals/image.py in plot_maps(self, components, mva_type, scores, factors, cmap, no_nans, per_row, on_peaks, save_figs, directory)
541 messages.warning('View not supported')
542 elif self.axes_manager.navigation_dimension == 1:
--> 543 locs=self.mapped_parameters.locations
544 if hasattr(self.mapped_parameters,"original_files"):
545 parents=self.mapped_parameters.original_files

AttributeError: 'DictionaryBrowser' object has no attribute 'locations'