フィルターのクリア

How were these two plots created?

5 ビュー (過去 30 日間)
Korbi
Korbi 2020 年 5 月 14 日
コメント済み: Star Strider 2020 年 5 月 14 日
I've got two plots from scientific papers that I can't seem to recreate. I would apprechiate if someone could tell me which plot command was used.
The first one is a color-coded representation of values in a matrix (or at least I assume it is), where the number that is represented is also visible in the image.
I've tried playing around with the imagesc() and the pcolor() commands, but none of them allowed me to display the numeric value represented by the color.
My second enigmatic plot is the result of a 2D Fourier transformation:
I'm pretty sure it was created via imagesc(), but I'd like to know how the axis midpoint was moved into the center of the image and how the axis cross was created.
When I try
iamgesc(imfftnorm);
colormap(jet)
ax = gca;
ax.XAxisLocation = 'origin';
ax.YAxisLocation = 'origin';
I get this instead:
Different shape aside (I think that's because I was only using a screenshot of his data for the Fourier transformation), I can't get the middle of the axes moved to the center of the image, and I don't know how that cross can be displayed.
If anyone has any idea about these two, I'd be very grateful.

採用された回答

Star Strider
Star Strider 2020 年 5 月 14 日
The top plot image appears to be a heatmap.
The lower plot image is most likely a surf plot using the view function (specifically view(0,90)) to see it from the top.
That’s my best guess for the lower one, anyway.
  8 件のコメント
Korbi
Korbi 2020 年 5 月 14 日
Hah, how did I not think of that? Sometimes the easiest answer is the best answer.
Thanks, I thought that maybe the original had used some setting to move the x- and y-axis to the middle of the screen.
Star Strider
Star Strider 2020 年 5 月 14 日
As always, my pleasure!
I thought these:
ax = gca;
ax.XAxisLocation = 'origin';
ax.YAxisLocation = 'origin';
would work, however it may be necessary to add:
ax.ZAxisLocation = 'origin';
as well. (I didn’t consider that possibility, and I didn’t test it since creating them manually worked.)

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

その他の回答 (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