()
| 232 | ######################################################### |
| 233 | # Read the Docs in http://matplotlib.org/1.4.1/index.html |
| 234 | def plot_Output(): |
| 235 | data = np.loadtxt('output.dat') |
| 236 | # plot the first column as x, and second column as y |
| 237 | x=data[:,0] |
| 238 | y=data[:,1] |
| 239 | plt.plot(x,y) |
| 240 | plt.xlabel('Generation') |
| 241 | plt.ylabel('Fitness average') |
| 242 | plt.xlim(0.0, 550.0) |
| 243 | plt.show() |
| 244 | |
| 245 | ######################################################## |
| 246 | # # |