%%time
it=200
f1 =open('data/ex%05d.d' %(it),'r')
f2 =open('data/ey%05d.d' %(it),'r')
f3 =open('data/ez%05d.d' %(it),'r')
f4 =open('data/bx%05d.d' %(it),'r')
f5 =open('data/by%05d.d' %(it),'r')
f6 =open('data/bz%05d.d' %(it),'r')
f7 =open('data/rho%05d.d' %(it),'r')
f8 =open('data/jix%05d.d' %(it),'r')
f9 =open('data/jiy%05d.d' %(it),'r')
f10=open('data/jiz%05d.d' %(it),'r')
ex =np.fromfile(f1, dtype='float64',sep=" ").reshape(-1,nx)
ey =np.fromfile(f2, dtype='float64',sep=" ").reshape(-1,nx)
ez =np.fromfile(f3, dtype='float64',sep=" ").reshape(-1,nx)
bx =np.fromfile(f4, dtype='float64',sep=" ").reshape(-1,nx)
by =np.fromfile(f5, dtype='float64',sep=" ").reshape(-1,nx)
bz =np.fromfile(f6, dtype='float64',sep=" ").reshape(-1,nx)
rho=np.fromfile(f7, dtype='float64',sep=" ").reshape(-1,nx)
jix=np.fromfile(f8, dtype='float64',sep=" ").reshape(-1,nx)
jiy=np.fromfile(f9, dtype='float64',sep=" ").reshape(-1,nx)
jiz=np.fromfile(f10,dtype='float64',sep=" ").reshape(-1,nx)
display.clear_output(True)
plt.figure(figsize=(20,12))
plt.subplots_adjust(wspace=0.2, hspace=0.2)
plt.subplot(3,4,1) ;plt.imshow(ex,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$E_x$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,4,2) ;plt.imshow(ey,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$E_y$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,4,3) ;plt.imshow(ez,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$E_z$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,4,5) ;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,4,6) ;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,4,7) ;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,4,9) ;plt.imshow(jix,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$J_{ix}$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,4,10) ;plt.imshow(jiy,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$J_{iy}$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,4,11) ;plt.imshow(jiz,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$J_{iz}$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.subplot(3,4,12);plt.imshow(rho,aspect='auto',origin='lower',cmap='jet');plt.colorbar();plt.title(r'$\rho_i$'); plt.tick_params(labelbottom='off',labelleft='off')
plt.suptitle('it=%06d' %(it*dt))
plt.show()