suppl_plots.py 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3. import functions as r
  4. ##### Figure S2 #####
  5. # load data for FigS2A
  6. sims=np.load('coefC_tau_th.npy',allow_pickle=True)
  7. # plot FigS2A
  8. fig1,ax1,fig2,ax2,fig3,ax3,fig4,ax4,fig5,ax5,fig6,ax6=r.dif_2d(sims)
  9. r.ns_region(sims,fig1,ax1,fig2,ax2,fig3,ax3,fig4,ax4,fig5,ax5,fig6,ax6)
  10. # load data for FigS2B
  11. sims=np.load('d_tau_th.npy',allow_pickle=True)
  12. # plot FigS2B
  13. fig1,ax1,fig2,ax2,fig3,ax3,fig4,ax4,fig5,ax5,fig6,ax6=r.dif_2d(sims)
  14. r.ns_region(sims,fig1,ax1,fig2,ax2,fig3,ax3,fig4,ax4,fig5,ax5,fig6,ax6)
  15. ##### Figure S4 #####
  16. # load data for FigS4B
  17. sims=np.load('w1-w2v2.npy',allow_pickle=True)
  18. # plot FigS4B
  19. p1=1.0
  20. p2=1.0
  21. fig8, fig9, fig10, fig11, k = r.one_combi(sims,p1,p2)
  22. # load data for FigS4D-E
  23. sims=np.load('w1-w2v2.npy',allow_pickle=True)
  24. # plot FigS4D-E
  25. fig1,ax1,fig2,ax2,fig3,ax3,fig4,ax4,fig5,ax5,fig6,ax6=r.dif_2d(sims)
  26. r.ns_region(sims,fig1,ax1,fig2,ax2,fig3,ax3,fig4,ax4,fig5,ax5,fig6,ax6)
  27. ##### Figure S8 #####
  28. # load data for FigS8A-B-C
  29. sims=np.load('coefC-LF_d-LF.npy',allow_pickle=True)
  30. # plot FigS8A-B
  31. fig1,ax1,fig2,ax2,fig3,ax3,fig4,ax4,fig5,ax5,fig6,ax6=r.dif_2d(sims)
  32. r.ns_region(sims,fig1,ax1,fig2,ax2,fig3,ax3,fig4,ax4,fig5,ax5,fig6,ax6)
  33. # plot FigS8C
  34. p1=0.5
  35. p2=1.7
  36. fig8, fig9, fig10, fig11, k = r.one_combi(sims,p1,p2)
  37. # load data for FigS8D-E-F
  38. sims=np.load('coefC-LF_d-LF.npy',allow_pickle=True)
  39. sims_tauth=np.load('coefC-LF_d-LF_15-tau_th.npy',allow_pickle=True)
  40. # plot FigS8D-E
  41. fig1,ax1,fig2,ax2,fig3,ax3,fig4,ax4,fig5,ax5,fig6,ax6=r.effect_tauth(sims, sims_tauth)
  42. r.ns_region(sims_tauth,fig1,ax1,fig2,ax2,fig3,ax3,fig4,ax4,fig5,ax5,fig6,ax6,sims)
  43. # plot FigS8F
  44. p1=0.5
  45. p2=1.7
  46. fig8, fig9, fig10, fig11, k = r.one_combi(sims_tauth,p1,p2,sims)