Skip to content

Commit

Permalink
ENH: make default node color black biocore#143
Browse files Browse the repository at this point in the history
(Next up is making the default node color, and the background color,
configurable.)
  • Loading branch information
fedarko committed Jun 30, 2020
1 parent 39a342d commit 13c7c72
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
Binary file modified docs/moving-pictures/empress-tree-tandem.qzv
Binary file not shown.
Binary file modified docs/moving-pictures/empress-tree.qzv
Binary file not shown.
2 changes: 1 addition & 1 deletion empress/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def _to_dict(self):
for i, node in enumerate(self.tree.postorder(include_self=True), 1):
tree_data[i] = {
'name': node.name,
'color': [0.75, 0.75, 0.75],
'color': [0, 0, 0],
'sampVal': 1,
'visible': True,
'single_samp': False
Expand Down
3 changes: 1 addition & 2 deletions empress/support_files/js/empress.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ define([
* @type {Array}
* The default color of the tree
*/
this.DEFAULT_COLOR = [0.75, 0.75, 0.75];
this.DEFAULT_COLOR_HEX = "#c0c0c0";
this.DEFAULT_COLOR = [0, 0, 0];

this.DEFAULT_BRANCH_VAL = 1;

Expand Down

0 comments on commit 13c7c72

Please sign in to comment.