Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed legend setting behaviour
Browse files Browse the repository at this point in the history
Seanny123 committed Oct 14, 2015

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
@@ -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));
}
}

0 comments on commit 8b9d782

Please sign in to comment.