pysilcam/plotting.py
def montage_plot(montage, pixel_size):
    '''
    Plots a SilCam particle montage with a 1mm scale reference
    
    Args:
        montage (uint8) : a SilCam montage created with scpp.make_montage
        pixel_size (float) : the pixel size of the SilCam used, obtained from settings.PostProcess.pix_size in the config ini file
    '''
    msize = np.shape(montage[:,0,0])
    ex = pixel_size * np.float64(msize)/1000.

    ax = plt.gca()
    ax.imshow(montage, extent=[0,ex,0,ex])
    ax.set_xticks([1, 2],[])
    ax.set_xticklabels(['    1mm',''])
    ax.set_yticks([], [])
    ax.xaxis.set_ticks_position('bottom')

    Plots a SilCam particle montage with a 1mm scale reference
    
    Args:
        montage (uint8) : a SilCam montage created with scpp.make_montage
        pixel_size (float) : the pixel size of the SilCam used, obtained from settings.PostProcess.pix_size in the config ini file
    
Plots a SilCam particle montage with a 1mm scale reference
Plots a SilCam particle montage with a 1mm scale reference
def montage_plot(montage, pixel_size):
    msize = np.shape(montage[:,0,0])
    ex = pixel_size * np.float64(msize)/1000.
    ax = plt.gca()
    ax.imshow(montage, extent=[0,ex,0,ex])
    ax.set_xticks([1, 2],[])
    ax.set_xticklabels(['    1mm',''])
    ax.set_yticks([], [])
    ax.xaxis.set_ticks_position('bottom')
def montage_plot ( montage , pixel_size ) : msize = np . shape ( montage [ : , 0 , 0 ] ) ex = pixel_size * np . float64 ( msize ) / 1000. ax = plt . gca ( ) ax . imshow ( montage , extent = [ 0 , ex , 0 , ex ] ) ax . set_xticks ( [ 1 , 2 ] , [ ] ) ax . set_xticklabels ( [ '    1mm' , '' ] ) ax . set_yticks ( [ ] , [ ] ) ax . xaxis . set_ticks_position ( 'bottom' )
Plots a SilCam particle montage with a 1mm scale reference
Plots a SilCam particle montage with a 1mm scale reference
'''
    Plots a SilCam particle montage with a 1mm scale reference
    
    Args:
        montage (uint8) : a SilCam montage created with scpp.make_montage
        pixel_size (float) : the pixel size of the SilCam used, obtained from settings.PostProcess.pix_size in the config ini file
    '''
montage
a SilCam montage created with scpp.make_montage
a SilCam montage created with scpp . make_montage
pixel_size
the pixel size of the SilCam used, obtained from settings.PostProcess.pix_size in the config ini file
the pixel size of the SilCam used obtained from settings . PostProcess . pix_size in the config ini file