A little bit confusing imaginary 2d graph for 2d histogram
It would be visibly easier to understand if the 2dplot would be rotated 90 degrees clockwise to fit the density array output, just saying. :)
1 answers ( 0 marked as helpful)
Super learner
This user is a Super Learner. To become a Super Learner, you need to reach Level 8.
Hi Oscar, I just asked about something similar. In my case, what I was asked was to rotate the density matrix, using the following code.
np.array(list(map(lambda row: row[::-1], dm))).T
dm, is de density array.
dm = np.histogram2d(matrix_A[0], matrix_A[1], bins=4)[0]
dm, is de density array.
dm = np.histogram2d(matrix_A[0], matrix_A[1], bins=4)[0]