Hello!
Im working with data of height and period of ocean waves, each pair have a power value associated, I have to get a bivariate histogram but instead of number of observations in colorbar i want that the scale represents the power associated.
I attached an example of the plots that i already have and the code to obtain it.
Xedges = [1:0.25:16];Yedges = [0.00:0.025:1.6];h = histogram2(Tp,Hs,Xedges,Yedges)h.FaceColor = 'flat';h.DisplayStyle = 'tile';c=colorbar;c.Label.String = 'NĂºmero de observaciones';c.Label.FontSize = 14;view(2)
I am new in matlab and maybe Im wrong with the function that i am using, i also tried with sccater3 but i have to group my data in bins
so this option doesnt work.
Thanks in advance for your help
Best Answer