Combining two contourplots in one plot
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
jan mischke
am 30 Okt. 2015
Bearbeitet: jan mischke
am 1 Nov. 2015
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 30 Okt. 2015
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.
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Contour Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!