我有一个在matlab中绘制图像的代码。使用matplotlib pyplot,这段代码在python中会是什么样子?我没有得到相同的情节使用它。我的matplotlib使用numpy.angle给出了一个全黑白的图像。
f1 = figure(66); imagesc(-angle(O),[-.6,1]); axis image; colormap gray; axis offObs:变量O是一个复数数组。谢谢你们。
发布于 2018-12-16 02:40:21
它将变为黑白的原因是因为您绘制的值超出了-0.6到1的范围。
numpy.angle可能以度为单位返回,或者只是由于某些原因相位角不同-例如,180度异相。
https://stackoverflow.com/questions/53794485
复制相似问题