readcreate graphwin titled ''investment growth chart'you may be wondering how this will translate into python code you have already seen that the graphwin constructor allows an optional parameter to specify the title of the window you may also supply width and height parameters to control the size of the window thusthe command to create the output window will bewin graphwin("investment growth chart" next we turn to the problem of printing labels along the left edge of our window to simplify the problemwe will assume the graph is always scaled to maximum of $ , with the five labels " kto " kas shown in the example window the question is how should the labels be drawnwe will need some text objects when creating textwe specify the anchor point (the point the text is centered onand the string to use as the label the label strings are easy our longest label is five charactersand the labels should all line up on the right side of columnso the shorter strings will be padded on the left with spaces the placement of the labels is chosen with bit of calculation and some trial and error playing with some interactive examplesit seems that string of length five looks nicely positioned in the horizontal direction placing the center pixels in from the left edge this leaves just bit of white space at the margin in the vertical directionwe have just over pixels to work with simple scaling would be to have pixels represent $ , that means our five labels should be spaced pixels apart using pixels for the range - , leaves pixels to split between the top and bottom margins we might want to leave little more margin at the top to accommodate values that grow beyond $ , little experimentation suggests that putting the klabel pixels from the bottom (position seems to look nice elaborating our algorithm to include these detailsthe single step draw scale labels on left side of window becomes sequence of steps draw label kat ( draw label kat ( draw label kat ( draw label kat ( draw label " kat ( the next step in the original design calls for drawing the bar that corresponds to the initial amount of the principal it is easy to see where the lower left corner of this bar should be the value of $ is located vertically at pixel and the labels are centered pixels in from the left edge adding another pixels gets us to the right edge of the labels thus the lower left corner of the th bar should be at location (