我试图用matlab和python绘制声场,但如果matlab允许我这样做:
imagesc(x,y,real(sf_vsrc)); colorbar;
axis xy
title('soundfield ground truth');
使用python,我会这样做:
plt.imshow(sf_vsrc_gt,extent=[x[0],x[-1],y[0],y[-1]])
plt.colorbar()
plt.show()
事实上,在Matlb中,如果我不放置“axis xy”,我的绘图与python相同,那么如何在python中放置“axis xy”以获得与Matlab相同的结果呢
您可以通过可选输入进行更改:
或者稍后使用
extent
和origin
属性相关问题 更多 >
编程相关推荐