Asked by Alon Spinner
on 16 Sep 2018

Hi, I am having trouble with auto-updating axes limits with scatter3 after using translation. I would like them update but they do not. invariant to "hold" and XLimMode (and the such) are on auto.

I have written a code for example below.

Thanks, Alon

%create ordinates

X=-1:0.1:1;

Y=-1:0.1:1;

Z=X.^2+Y.^2;

%scatter and obtain handle

H=scatter3(X,Y,Z);

%create translation handle

Transltn=makehgtform('translate',[100,0,0]);

Transfm=hgtransform('Matrix',Transltn);

%implement translation

H.Parent=Transfm;

Opportunities for recent engineering grads.

Apply Today
## 11 Comments

## Walter Roberson (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/419214-scatter3-does-not-update-axes-limits-when-translated#comment_610964

## Alon Spinner (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/419214-scatter3-does-not-update-axes-limits-when-translated#comment_610992

## dpb (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/419214-scatter3-does-not-update-axes-limits-when-translated#comment_611049

## Walter Roberson (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/419214-scatter3-does-not-update-axes-limits-when-translated#comment_611057

## dpb (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/419214-scatter3-does-not-update-axes-limits-when-translated#comment_611101

## Walter Roberson (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/419214-scatter3-does-not-update-axes-limits-when-translated#comment_611106

## dpb (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/419214-scatter3-does-not-update-axes-limits-when-translated#comment_611115

## Alon Spinner (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/419214-scatter3-does-not-update-axes-limits-when-translated#comment_611432

## dpb (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/419214-scatter3-does-not-update-axes-limits-when-translated#comment_611497

## dpb (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/419214-scatter3-does-not-update-axes-limits-when-translated#comment_611855

## Alon Spinner (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/419214-scatter3-does-not-update-axes-limits-when-translated#comment_612401

Sign in to comment.