【问题标题】:How to change the color in colormap in surf plot?如何更改冲浪图中颜色图中的颜色?
【发布时间】:2016-02-15 23:02:15
【问题描述】:

我有以下代码,我为 stft 绘制了关于时间、频率和幅度的 3D 图。如何将图中看到的黑色更改为白色?我不明白如何在颜色图选项中将黑色更改为白色

[ss,ff,tt,pp]= spectrogram(x_dc,128*2,60,128*2,Fs);
figure,surf(tt,ff,abs(ss))

Spectrogram

【问题讨论】:

    标签: matlab plot colormap


    【解决方案1】:
    figure,surf(tt,ff,abs(ss), 'EdgeColor', 'none')
    

    您看到的“黑色”可能是每个单元格的边界。不要使用 'EdgeColor', 'none' 名称-值对显示它们。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多