nx=200
it=80
f1 =open('data/rho%05d.d' %(it),'rb')
f2 =open('data/vx%05d.d' %(it),'rb')
f3 =open('data/vy%05d.d' %(it),'rb')
f4 =open('data/vz%05d.d' %(it),'rb')
f5 =open('data/pr%05d.d' %(it),'rb')
f6 =open('data/bx%05d.d' %(it),'rb')
f7 =open('data/by%05d.d' %(it),'rb')
f8 =open('data/bz%05d.d' %(it),'rb')
f9 =open('data/beta%05d.d' %(it),'rb')
f10=open('data/eta%05d.d' %(it),'rb')
f11=open('data/chi%05d.d' %(it),'rb')
f12=open('data/jx%05d.d' %(it),'rb')
f13=open('data/jy%05d.d' %(it),'rb')
f14=open('data/jz%05d.d' %(it),'rb')
f15=open('data/divu%05d.d' %(it),'rb')
f16=open('data/divb%05d.d' %(it),'rb')
rho =np.fromfile(f1, dtype='float64').reshape(-1,nx)
vx =np.fromfile(f2, dtype='float64').reshape(-1,nx)
vy =np.fromfile(f3, dtype='float64').reshape(-1,nx)
vz =np.fromfile(f4, dtype='float64').reshape(-1,nx)
pr =np.fromfile(f5, dtype='float64').reshape(-1,nx)
bx =np.fromfile(f6, dtype='float64').reshape(-1,nx)
by =np.fromfile(f7, dtype='float64').reshape(-1,nx)
bz =np.fromfile(f8, dtype='float64').reshape(-1,nx)
beta=np.fromfile(f9, dtype='float64').reshape(-1,nx)
eta =np.fromfile(f10,dtype='float64').reshape(-1,nx)
chi =np.fromfile(f11,dtype='float64').reshape(-1,nx)
jx =np.fromfile(f12,dtype='float64').reshape(-1,nx)
jy =np.fromfile(f13,dtype='float64').reshape(-1,nx)
jz =np.fromfile(f14,dtype='float64').reshape(-1,nx)
divu=np.fromfile(f15,dtype='float64').reshape(-1,nx)
divb=np.fromfile(f16,dtype='float64').reshape(-1,nx)
display.clear_output(True)
plt.figure(figsize=(20,12))
plt.subplots_adjust(wspace=0.2, hspace=0.2)
plt.subplot(3,5,1) ;plt.imshow(rho,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$\rho$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,5,2) ;plt.imshow(vx,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$v_x$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,5,3) ;plt.imshow(vy,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$v_y$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,5,4) ;plt.imshow(vz,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$v_z$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,5,5) ;plt.imshow(pr,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$Pr$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,5,6) ;plt.imshow(bx,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$B_x$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,5,7) ;plt.imshow(by,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$B_y$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,5,8) ;plt.imshow(bz,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$B_z$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,5,9) ;plt.imshow(beta,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$\beta$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,5,10);plt.imshow(eta,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$\eta$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,5,11);plt.imshow(chi,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$\chi$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,5,12);plt.imshow(divb,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$\nabla\cdot\bf{B}$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,5,13);plt.imshow(jx,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$j_x$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,5,14);plt.imshow(jy,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$j_y$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,5,15);plt.imshow(jz, aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$j_z$'); plt.tick_params(labelbottom='off',labelleft='off')
#plt.suptitle('it=%06d' %it)
plt.show()