2012-02-23 36 views
0

我想要做一系列數字並自動更改參數,例如, pan。有沒有辦法在不使用交互式鼠標模式的情況下在x或y軸上平移圖形? (自動生成的)結果可能看起來像這樣,例如, - 移動在x軸負方向:通過代碼平移MATLAB圖形

enter image description here

enter image description here

+0

這個問題有些含糊。你是指在圖形座標系統(2D)還是在座標系統(2D或3D)中平移?根據軸的尺寸,交互式「pan」的作用是不同的。 – upperBound 2012-02-23 15:26:35

回答

1

我認爲你可以做到這一點像這樣

a=xlim; %get the initial axes limits 
xlim(a-0.5); %move the pan 0.5 unit to the right 

您可以ylim做到這一點,zlim以及