Matplotlib-调整频谱图的颜色参数

时间:2019-02-09 18:47:15

标签: python-3.x matplotlib spectrogram

我正在调整matplotlib图像的颜色设置,但是我不确定应该切换哪个参数。

当前,我的图片如下:

enter image description here

但我希望这样:

enter image description here

如图所示,整个颜色设置看起来更暗和模糊。

我尝试了许多cmap设置,但似乎没有解决问题。

有人可以给我一些建议吗?还是有人可以为spectrogram绘图建议更好的组合?


关于interpolation参数。我已经比较了不同的结果,但是看不到差异。

plt.imshow(im, interpolation = 'bilinear', vmin = 50, vmax = 250)

enter image description here

plt.imshow(im, interpolation = 'none', vmin = 50, vmax = 250)

enter image description here

在我看来,参数的变化没有显示出差异。设置有问题吗?

0 个答案:

没有答案