INNER CODE UNIT · Python
clean_axis
widdowquinn/pyani · pyani/pyani_graphics/mpl/__init__.py:72
def clean_axis(axis):
"""Remove ticks, tick labels, and frame from axis.
:param axis:
"""
axis.get_xaxis().set_ticks([])
axis.get_yaxis().set_ticks([])
for spine in list(axis.spines.values()):
spine.set_visible(False)
# Add dendrogram and axes to passed figure
def add_dendrogram(dfr, fig, params, heatmap_gs, orientation="col"):
"""Return a dendrogram and corresponding gridspec, attached to the fig.
:param dfr: Pandas DataFrame describing input data
:param fig: matplotlib Fig that holds graphical output
:param params: pyani_graphics.Params object