SHARE
TWEET

Untitled

a guest Apr 18th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Plot microstructure
  2. grid = plt.GridSpec(2, 3, wspace=0, hspace=0.1)
  3. fig100 = plt.figure(figsize=(22, 10))
  4. plots = [sim_1, sim_2, sim_5, sim_6, sim_2, sim_8]
  5. titles = ["Genetic Algorithm First Iteration",
  6.           "Genetic Algorithm Last Iteration",
  7.           "Gradient Descent First Iteration",
  8.           "Gradient Descent Last Iteration",
  9.           "Genetic Algorithm + Gradient Descent First Iteration",
  10.           "Genetic Algorithm + Gradient Descent Last Iteration"]
  11. grid_coors = [grid[0, 0], grid[1, 0], grid[0, 1], grid[1, 1], grid[0, 2], grid[1, 2]]
  12.  
  13. for i in range(6):
  14.     ax = fig100.add_subplot(grid_coors[i])
  15.     cm = ax.scatter(plots[i]['x'], plots[i]['y'], c=plots[i]['Eq Fraq'], cmap='coolwarm', vmin=0, vmax=1, s=6)
  16.     ax.set_aspect('equal')
  17.     ax.set_xlim((plots[i]['x'].min(), plots[i]['x'].max()))
  18.     ax.set_ylim((plots[i]['y'].min(), plots[i]['y'].max()))
  19.     ax.get_xaxis().set_visible(False)
  20.     ax.get_yaxis().set_visible(False)
  21.     ax.set_title(titles[i])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top