(nodeTxt, centerPt, parentPt, nodeType)
| 33 | return maxDepth |
| 34 | |
| 35 | def plotNode(nodeTxt, centerPt, parentPt, nodeType): |
| 36 | createPlot.ax1.annotate(nodeTxt, xy=parentPt, xycoords='axes fraction', |
| 37 | xytext=centerPt, textcoords='axes fraction', |
| 38 | va="center", ha="center", bbox=nodeType, arrowprops=arrow_args ) |
| 39 | |
| 40 | def plotMidText(cntrPt, parentPt, txtString): |
| 41 | xMid = (parentPt[0]-cntrPt[0])/2.0 + cntrPt[0] |