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
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
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)