Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- from random import uniform
- plt.ion()
- def plot_chart(iteration_number, freq_state):
- plt.scatter(iteration_number, freq_state)
- plt.show()
- plt.pause(0.0001)
- for i in range(1,1001):
- state = uniform(0,1)
- plot_chart(i, state )
- plt.pause(0.0001)
Add Comment
Please, Sign In to add comment