1

How how can I add different colors for guiding line (connecting leaf node with the text using guiding_lines_color in TreeStyle class) in ETE3 python module.

Thanks

fransua
  • 1,559
  • 13
  • 30
Manu
  • 325
  • 1
  • 4
  • 10

1 Answers1

1

Use TreeStyle.guiding_lines_color

http://etetoolkit.org/docs/latest/reference/reference_treeview.html#ete3.TreeStyle

jhc
  • 1,671
  • 3
  • 13
  • 16
  • Hi @jhc. I need different guide lines color for leaves. – Manu Sep 09 '16 at 15:28
  • then I don't think you can get it easily. If the branch lengths of the tips can be faked in your tree, there would be a trick though: i) convert tree into ultrametric: e.g. https://www.biostars.org/p/172568/#172820 ii) modify node.img_style['hz_line_color'] for each tip node. – jhc Sep 11 '16 at 17:19
  • Thank you for your answers @jhc. Unfortunately none of them resolve my problem. – Manu Sep 12 '16 at 01:04