Commit a0ff1868 authored by YesunHuang's avatar YesunHuang
Browse files

fix bugs

parent 086c2f07
......@@ -27,16 +27,16 @@ ax1=axes[1].contourf(g,Ea,data[:,:,1],cmap=cm.coolwarm)
ax2=axes[2].contourf(g,Ea,data[:,:,2],cmap=cm.coolwarm)
ax00=axes[0].contour(g,Ea,data[:,:,0],ax0.levels)
ax11=axes[1].contour(g,Ea,data[:,:,1],ax1.levels)
ax11=axes[2].contour(g,Ea,data[:,:,2],ax2.levels)
ax22=axes[2].contour(g,Ea,data[:,:,2],ax2.levels)
#fmt = '%1.2f '
axes[0].clabel(ax00, ax00.levels, inline=True)
axes[1].clabel(ax11, ax11.levels, inline=True)
axes[2].clabel(ax11, ax11.levels, inline=True)
axes[2].clabel(ax22, ax22.levels, inline=True)
axes[0].set_xlabel(r'$g$');axes[1].set_xlabel(r'$g$');axes[2].set_xlabel(r'$g$')
axes[0].set_ylabel(r'$E_a$');axes[1].set_ylabel(r'$E_a$');axes[2].set_ylabel(r'$E_a$')
bar1=fig.colorbar(ax0,ax=axes[0],pad=0.1)
bar2=fig.colorbar(ax1,ax=axes[1],pad=0.1)
bar2=fig.colorbar(ax1,ax=axes[2],pad=0.1)
bar0=fig.colorbar(ax0,ax=axes[0],pad=0.1)
bar1=fig.colorbar(ax1,ax=axes[1],pad=0.1)
bar2=fig.colorbar(ax2,ax=axes[2],pad=0.1)
fig.savefig('imgs/EgPopulation3D_DeltaB_'+str(DeltaB)+'_Ea_'+str(Ea_s)+'-'+str(Ea_e)+'_g_'+str(g_s)+'-'+str(g_e)+'.svg',dpi=600,format='svg',bbox_inches='tight')
#print other data
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment