필터 지우기
필터 지우기

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 CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by