contour() function plots with a solid background (and not a transparent background, which is desired)
15 vues (au cours des 30 derniers jours)
I'm plotting a colored spectrogram with contourf().
Then, I would like to plot statistics on top of this plot by adding a solid line, outlining the regions of statistically significance difference.
In the past, this was achieved by 'hold on' and plotting contour() 'on top of' the other contour plot. (code below)
However, now the second contour plot does plot the soline line circumscribing stat-sig different data BUT the background is a solid color and it overrides/sits on top of the first contoru plot and I can't see the original spectrogram (its all one color purple). Please help. code below. Thanks much in advance.
phas_freqs = 1:1:20;
ampl_freqs = 1:2:70;
% modindex_comodulogram = 20x35 double matrix of numbers
% z_modulation = 20x35 double matrix of Z-VALUES OF THE modindex_comodulogram
I PLOTTED BOTH IN SEPARATE PLOTS BELOW.
I WOULD LIKE TO PUT THE LINE PLOT 'ON TOP' OF THE SPECTROGRAM IN ONE PLOT. please help!
Star Strider le 25 Sep 2022
Perhaps something like this —
[X,Y,Z] = peaks(50);
contour3(X, Y, Z, 'Color','m', 'LineWidth',2)
Expedriment with this code and your data ato get the desired result.