Skip to content

Commit

Permalink
fixed legend setting behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Seanny123 committed Oct 14, 2015
1 parent 52cd623 commit 8b9d782
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nengo_gui/static/components/value.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,11 @@ Nengo.Value.prototype.set_legend_labels = function() {
if ((label_csv !== null) && (label_csv !== '')) {
labels = label_csv.split(',');

for(i=0; i<self.n_lines; i++){
for(i=0; i<labels.length; i++){
if(labels[i] !== ""){
self.legend_labels[i] = labels[i];
} else {
self.legend_labels[i] = "label_".concat(String(i));
}
}

Expand Down

0 comments on commit 8b9d782

Please sign in to comment.