MCPcopy Create free account
hub / github.com/ResearchCodesHub/QuantumGeneticAlgorithms / plot_Output

Function plot_Output

QGA.py:234–243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

232#########################################################
233# Read the Docs in http://matplotlib.org/1.4.1/index.html
234def 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# #

Callers 1

QGA.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected