def test_rgb_image(mpl_cleanup, normalization): w = 20 data = np.arange(1, w * w + 1).reshape(w, w) ch1 = hs.signals.Signal2D(data) ch1.axes_manager = _set_signal_axes(ch1.axes_manager) ch2 = hs.signals.Signal2D(data.T * 2) ch2.axes_manager = _set_signal_axes(ch2.axes_manager) plot_RGB_map([ch1, ch2], normalization=normalization) return plt.gcf()
def test_rgb_image(normalization): w = 20 data = np.arange(1, w * w + 1).reshape(w, w) ch1 = hs.signals.Signal2D(data) ch1.axes_manager = _set_signal_axes(ch1.axes_manager) ch2 = hs.signals.Signal2D(data.T * 2) ch2.axes_manager = _set_signal_axes(ch2.axes_manager) plot_RGB_map([ch1, ch2], normalization=normalization) return plt.gcf()