Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:18

0001 #!/usr/bin/env python
0002 """
0003 ::
0004 
0005     IMGPATH=$HOME/rocket.jpg ~/o/sysrap/tests/SIMGTest.sh ana
0006 
0007 
0008 """
0009 import os, numpy as np 
0010 import matplotlib.pyplot as plt
0011 
0012 
0013 if __name__ == '__main__':
0014     a = np.load(os.path.expandvars("$NPYPATH"))
0015     print("a.shape : %s " % repr(a.shape))
0016 
0017     fig, axs = plt.subplots(2,2)
0018 
0019     ax = axs[0,0]
0020     ax.imshow(a)
0021     ax.set_xlabel("a")
0022 
0023     ax = axs[0,1]
0024     ax.imshow(a[:,:,0], label="R")
0025     ax.set_xlabel("a[:,:,0]")
0026 
0027     ax = axs[1,0]
0028     ax.imshow(a[:,:,1])
0029     ax.set_xlabel("a[:,:,1]")
0030 
0031     ax = axs[1,1]
0032     ax.imshow(a[:,:,2])
0033     ax.set_xlabel("a[:,:,2]")
0034 
0035 
0036     plt.show()
0037