Hi all, I'm trying to plot a heatmap, but I'm not able to set up the x axis properly.
I have a data set that I run through this code to obtain a 2D histogram (that's what I'm aiming for)
Then I try to plot the heatmap with this
But I get the error that lenght of xbin doesn't match the lenght of result.
I know that the error it's because xbin values are edges and not centers, so I end up having 1 extra value on the xbin var. Do you know how I could set up the edges value on the x axis? Thanks.
A workaround could be using hist instead of histcounts, so the values of xbin will be centers and not edges, but I'd like to avoid this solution.