Skip to content

Instantly share code, notes, and snippets.

View OnDraganov's full-sized avatar

Ondrej Draganov OnDraganov

  • Institute of Science and Technology Austria (ISTA)
View GitHub Profile
@OnDraganov
OnDraganov / plot_eteTree.py
Last active September 7, 2023 15:26 — forked from fransua/plot_eteTree.py
use matplotlib to draw phylogenetic trees from ETE3
# Original code from: https://gist.github.com/fransua/da703c3d2ba121903c0de5e976838b71
# Minor edits to make it run in Python 3,
# and added label_func argument to control the displayed leaf names.
from itertools import chain
from matplotlib import pyplot as plt
from matplotlib.collections import LineCollection
import numpy as np