Esempio n. 1
0
 def plot_beam(self):
     fig, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, sharex='col', sharey='row')
     n = self.beam_kernel[0].shape[0]/2
     extent = np.arange(-n, n+1)*self.config.beam_resolution
     im = new_imshow(ax1, self.beam_kernel[0], x=extent, y=extent, interpolation="nearest")
     fig.colorbar(im, ax=ax1)
     im = new_imshow(ax2, self.beam_kernel[1], x=extent, y=extent, interpolation="nearest")
     fig.colorbar(im, ax=ax2)
     im = new_imshow(ax3, self.beam_kernel[2], x=extent, y=extent, interpolation="nearest")
     fig.colorbar(im, ax=ax3)
     im = new_imshow(ax4, self.beam_kernel[3], x=extent, y=extent, interpolation="nearest")
     fig.colorbar(im, ax=ax4)
     plt.show()
def plot_beam(beam_kernel, beam_params):
    fig, ax = plt.subplots()
    n = beam_kernel[0].size/2
    extent = np.arange(-n, n+1)*beam_params.beam_resolution
    im = new_imshow(ax, beam_kernel, x=extent, y=extent, interpolation="nearest")
    fig.colorbar(im, ax=ax)
    plt.show()
Esempio n. 3
0
 def plot_beam(self):
     fig, ax= plt.subplots()
     n = self.beam_kernel[0].shape[0]/2
     extent = np.arange(-n, n+1)*self.config.scan_resolution
     im = new_imshow(ax, 10*self.beam_kernel[0], x=extent, y=extent, interpolation="nearest", cmap='gray')
     plt.show()
Esempio n. 4
0
def draw_subplot(fig, plot_shape, plot_num, plot_object, title = None):
    ax = fig.add_subplot(plot_shape[0], plot_shape[1], plot_num)
    im = new_imshow(ax,plot_object)
    fig.colorbar(im, ax=ax)
Esempio n. 5
0
def plot_beam():
    fig, ax = plt.subplots()
    im = new_imshow(ax, beam_kernel)
    fig.colorbar(im, ax=ax)
    plt.show()