Skip to content

Commit

Permalink
Added data from the statistics to the plotting.
Browse files Browse the repository at this point in the history
--HG--
branch : dev
  • Loading branch information
fmder committed Nov 2, 2012
1 parent a9fa473 commit 7ab8354
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/es/cmaes_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,14 @@ def main(verbose=True):

plt.figure()
plt.subplot(2, 2, 1)
plt.semilogy(x, fbest, "-b")
plt.semilogy(x, stats.avg[0], "--b")
plt.semilogy(x, stats.max[0], "--b")
plt.semilogy(x, stats.min[0], "-b")
plt.semilogy(x, fbest, "-c")
plt.semilogy(x, sigma, "-g")
plt.semilogy(x, axis_ratio, "-r")
plt.grid(True)
plt.title("blue: fbest, green: sigma, red: axis ratio")
plt.title("blue: fvalues, green: sigma, red: axis ratio")

plt.subplot(2, 2, 2)
plt.plot(x, best)
Expand Down

0 comments on commit 7ab8354

Please sign in to comment.