I have two datasets d1,d2
filled with 2D Data of different scale.
import numpy as np
d1 = np.random.normal(-30,20,(500,2))
d2 = np.random.normal(-40,10,(500,2))
Furthermore I am able to create separate 100 x 100
2D Histograms (=gray scale images) from each individual dataset.
bins = [100,100]
h1 = np.histogram2d(d1[:,0], d1[:,1], bins)[0]
h2 = np.histogram2d(d2[:,0], d2[:,1], bins)[0]
but with this solution each 2D Histogram gets centered around its own mean and when plotting both histograms on top of each other they appear distributed around the same center which is in fact not true.
What I want to get is a single 100 x 100 x 2
historgam Matrix (comparable to a 2 Channel Image), which takes into account the different scales of the data so the displacement is not lost.