dwblas i have already made that changes already, i am now trying to figure out how to make a histogram of chainlength n.
Glenton- am still trying out the matplotlib.will get back to you if i have a problem.
User Profile
Collapse
-
we want to allow the user to draw histograms for more than one range of numbers during the running of the program, we'll want to close the window after having enough time to view it. You should close the window after 10 seconds. You'll need to use sleep() to do this.
All handling of the graphics window should be done within the drawHistogram() function. In fact, since the window is opened in this function, it is local to this function. Trying...Leave a comment:
-
histogram in python
I want to draw a histogram of 2-11 and each bar of the number would reach up to the chain length of that number.
I have a hailstone sequence as given below
...Code:import string # from graphics import * from graphics import * #Constant MAX = 10000 # printing functions # this function prints a brief description of the program to the user # Inputs: none # Outputs :
No activity results to display
Show More
Leave a comment: