(inTree)
| 62 | #if you do get a dictonary you know it's a tree, and the first element will be another dict |
| 63 | |
| 64 | def createPlot(inTree): |
| 65 | fig = plt.figure(1, facecolor='white') |
| 66 | fig.clf() |
| 67 | axprops = dict(xticks=[], yticks=[]) |
| 68 | createPlot.ax1 = plt.subplot(111, frameon=False, **axprops) #no ticks |
| 69 | #createPlot.ax1 = plt.subplot(111, frameon=False) #ticks for demo puropses |
| 70 | plotTree.totalW = float(getNumLeafs(inTree)) |
| 71 | plotTree.totalD = float(getTreeDepth(inTree)) |
| 72 | plotTree.xOff = -0.5/plotTree.totalW; plotTree.yOff = 1.0; |
| 73 | plotTree(inTree, (0.5,1.0), '') |
| 74 | plt.show() |
| 75 | |
| 76 | |
| 77 |
nothing calls this directly
no test coverage detected