Last answered:

01 Oct 2024

Posted on:

06 Apr 2023

0

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)
Posted on:

01 Oct 2024

0
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]

Submit an answer