Made PCA more generic, even enable PCA of existing PCA-results as dimension names are modified to handle dimension name component in input.

This commit is contained in:
2006-04-28 11:44:55 +00:00
parent fa3b1182bc
commit a2d3a9d5cc
2 changed files with 22 additions and 9 deletions

View File

@@ -392,9 +392,11 @@ class LinePlot(Plot):
rows, cols = self._bg_matrix.shape
self.ax.imshow(self._bg_matrix, cmap=cm.Greys, extent=(0.5, cols+0.5, self._ymin, self._ymax))
dim_2, dim_1 = self._dataset.get_dim_names()
if selection:
ids = selection['ids'] # current identifiers
index = [ind for id,ind in self._dataset['ids'].items() if id in ids] #conversion to index
ids = selection[dim_2] # current identifiers
index = [ind for id,ind in self._dataset[dim_2].items() if id in ids] #conversion to index
for i in index:
line = self._dataset.get_matrix()[i]
self.ax.plot(range(1, len(line)+1), line)