Skip to content

Commit 5ce2a27

Browse files
Merge pull request #124 from Alxec/main
Resetting the colors of vector cells bugfix
2 parents 92f0d99 + 3bb5888 commit 5ce2a27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ratinabox/Neurons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1513,7 +1513,7 @@ def display_vector_cells(self,
15131513
facecolor = np.array(matplotlib.colors.to_rgba(facecolor))
15141514
facecolor_array = np.tile(np.array(facecolor), (self.n, 1))
15151515
else:
1516-
facecolor_array = self.cell_colors #made in child class init. Each cell can have a different plot color.
1516+
facecolor_array = self.cell_colors.copy() #made in child class init. Each cell can have a different plot color.
15171517
# e.g. if cells are slective to different object types or however you like
15181518
facecolor_array[:, -1] = 0.7*np.maximum(
15191519
0, np.minimum(1, fr / (0.5 * self.max_fr))

0 commit comments

Comments
 (0)