Tuesday, 8 April 2014

Add a figure vigilant to AxesSubplot Gridspec

I am controlling BioPython's phylo package to beget a tree, and offer use
gcf to save this tide tree as a figure vigilant of
matplotlib.tree=Phylo.read("my
tree.nwk","newick")Phylo.draw(tree)tree_f=plt.gcf()I wish to be means to
make use of this figure vigilant in a subplot:gs=gridspec.GridSpec(1,
2,height_ratios=[1,1,-2,2] ,width_ratios=[1,1,-2,2],hspace=0,wspace=0)
phyl_ax=plt.subplot(gs[0])ht_ax=plt.subplot(gs[1])How do we make phyl_ax
take adult a figure object?I have attempted phyl_ax(tree_f), this fails
with a TypeError: 'AxesSubplot' vigilant is not callable.

No comments:

Post a Comment