Position figures on a subplot

3 ビュー (過去 30 日間)
David Martins
David Martins 2020 年 1 月 31 日
コメント済み: David Martins 2020 年 2 月 5 日
Hi guys.
For my project i need to position 2 histograms next to a hist3 (to see the projection of x-axis and y-axis view from the top of the hist3). I have tried to move the histograms locations but till now i have been unsuccessfully. I have attached an image for you guys visualize my intentions on a better way. If the histograms shared their axis it would be really nice. For now, my code is:
subplot(2,2,4)
HR=histogram(Raciof_{k},500)
xlim([-1 1])
set(gca,'view',[90 -90])
HEsub=subplot(2,2,1)
HE=histogram(gca,E_{k},300)
xlim([0 2500])
subplot(2,2,3)
Hf=hist3([E_{k} Raciof_{k}],'edges',{xhe xhf});
%surf(Hf)
shading flat
set(get(gca,'child'),'FaceColor','interp','CDataMode','auto');
xlabel('Energia');ylabel('Racio');
I'll really appreciate your help.

採用された回答

Cris LaPierre
Cris LaPierre 2020 年 1 月 31 日
I'm not sure you want to be using hist3. I think you may want to use histogram2.
For what you are asking, take a look at scatterhistorgram. With some tweaks to the default format, that might be sufficient for what you want to visualize. If you want to see some additional options, check out this video (jump to about 1:25).
  1 件のコメント
David Martins
David Martins 2020 年 2 月 5 日
Thank you. Using scatterhistogram i won't have exacly what i was looking for but it's a very good approach.
Again, thank you very much.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by