MCPcopy Index your code
hub / github.com/wepe/MachineLearning / plotNode

Function plotNode

DecisionTree/treePlotter.py:35–38  ·  view source on GitHub ↗
(nodeTxt, centerPt, parentPt, nodeType)

Source from the content-addressed store, hash-verified

33 return maxDepth
34
35def 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
40def plotMidText(cntrPt, parentPt, txtString):
41 xMid = (parentPt[0]-cntrPt[0])/2.0 + cntrPt[0]

Callers 1

plotTreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected