예제 #1
0
def reset_colors_fit(img, data, data_view):
    image = fit_analysis.get_image_from_data(data, data_view)
    maxcolor = np.amax(image)
    mincolor = np.amin(image)
    img.set_clim(mincolor, maxcolor)
    data_view.maxcolor = maxcolor
    data_view.mincolor = mincolor
예제 #2
0
def initialize_image(axes, data, data_view):
    image = fit_analysis.get_image_from_data(data, data_view)
    data_view.mincolor = np.amin(image)
    data_view.maxcolor = np.amax(image)
    img = axes.imshow(image, interpolation='nearest')
    plt.yticks([])
    plt.xticks([]) 
    
    return img
예제 #3
0
def set_image_from_data(img, axes, data, data_view):
    image = fit_analysis.get_image_from_data(data, data_view)
    set_image_from_input(img, axes, image, data_view)