how to plot contour lines on Joint Histogram plot
Mostrar comentarios más antiguos
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 comentarios
Cris LaPierre
el 6 de Mzo. de 2021
If you share your data, we can probably be more helpful.
UTKARSH VERMA
el 6 de Mzo. de 2021
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Histograms en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




