通过代码平移MATLAB图形
问题描述:
我想要做一系列数字并自动更改参数,例如, pan
。有没有办法在不使用交互式鼠标模式的情况下在x或y轴上平移图形? (自动生成的)结果可能看起来像这样,例如, - 移动在x轴负方向:通过代码平移MATLAB图形
答
我认为你可以做到这一点像这样
a=xlim; %get the initial axes limits
xlim(a-0.5); %move the pan 0.5 unit to the right
您可以ylim做到这一点,zlim以及
这个问题有些含糊。你是指在图形坐标系统(2D)还是在坐标系统(2D或3D)中平移?根据轴的尺寸,交互式“pan”的作用是不同的。 – upperBound 2012-02-23 15:26:35