how to plot contour lines on Joint Histogram plot
Ältere Kommentare anzeigen
Hi all,
I am plotting joint histogram by using histogram2 as shown in figure.
I need contour lines to differentiate each color which gives clear picture of data distribution means lines to separate each color .
Can anyone help me with this?
my code for this plot as follows:
clf
figure(1)
Yedges = [0.25:.25:100];
Xedges = [50:2.5:350];
h= histogram2(olr,rf,Xedges,Yedges,'DisplayStyle','tile','FaceColor','flat')%,'Normalization','pdf')
colorbar;
colormap(hsv(15))
ylim([0 100])
ax=gca;
ax.CLim=[0 100]

And, The kind of figure I want should look like(plotted in Rstudio):

Thanks,
Utkarsh
2 Kommentare
Cris LaPierre
am 6 Mär. 2021
If you share your data, we can probably be more helpful.
UTKARSH VERMA
am 6 Mär. 2021
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Histograms finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




