Can someone help me create a plot that resembles this figure from a scholarly paper?

1 回表示 (過去 30 日間)
I have been trying to replicate this figure and plot similar data so I can visualize it like this but I can't seem to find the correct function on MATLAB to get an identical figure. I tried using the heatmap and HeatMap functions but their outputs were not visually pleasing or representative of what it is I'm trying to look at.
I have attatched the figure I would like to replicate. Please let me know if anyone can help! Thank you!

採用された回答

Adam Danz
Adam Danz 2020 年 1 月 24 日
編集済み: Adam Danz 2020 年 1 月 24 日
I don't recommend using heatmap due to its inflexibility. imagesc will work for this figure.
You'll have to add the colorbar (see colorbar), the red line and white dotted lines (see xline), and you'll have to add the Close and Open title strings by either using title (but only in 1 font color) or text. xlabel() and ylable() will take care of the axis labels.
If you get stuck show us where you're at and we can help you get over the hump.
  2 件のコメント
Connor Johnson
Connor Johnson 2020 年 1 月 24 日
Thanks this was so helpful and was exactly what i was looking for. I have another question that perhaps you could help with. How could I put numbers on the xaxis from (for example) -150:150, such as is done here from -25:25.
Adam Danz
Adam Danz 2020 年 1 月 24 日
編集済み: Adam Danz 2020 年 1 月 24 日
Specify the x values using this syntax
imagesc(x,y,C) (see the link)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by