Combining two contourplots in one plot
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi,
I am trying to combine two contour plots in one single plot. The problem is, that the results is not really satisfying. First you can see the first contourplot. The data is a 571x96 Matrix both times with values from 1 to 1e-300.
The second plot looks like that
If I combine them it looks like that
What I would like to see is still the colours of the second plot just overlayed with the black "circles" from the first plot. But somehow the colors from the second plot are lost. I use this approach:
Do you have any ideas how to make the final plot look better?
Thank you very much
P.S.> I am a MATLAB noob :) and I am using Matlab R2013a
댓글 수: 0
채택된 답변
Walter Roberson
2015년 10월 30일
With values as small as 1e-300 and at most 1 (both plus noise), log() of the values can be as low as -690 and as high as 0 (plus noise)
Then you combine that with a plot of values between 1 and 1e-300, so your combined plot has a data value range between -690 and +1. That change of range is going to change which values map to which color, as you have not given a caxis() command to determine the range of data used for coloring.
What I recommend you do is plot the color one first (which I think is actually the first of the two plots, not the second) and then call upon the File Exchange contribution named "freezeColors". That will lock in the colors for it. Then plot your black and white unfilled contours on top.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!