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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user