Preventing cell height adjustment when rotating 3D graphics

8

3

I have a large dataset of scattered x,y,z coordinates. I am trying to use ListPointPlot3D to identify outliers in 3D. This involves generating a plot and then rotating it to visualise the 'data cloud' and then trying to pick individual triples of interest. Here is an example of my data:

my data

Using the example from the Document Center (for everyone else's benefit):

ListPointPlot3D[
 Table[Sin[i] Cos[j], {i, -5, 5, .25}, {j, -5, 5, .25}], 
 ColorFunction -> "Rainbow"]

enter image description here

enter image description here

When the graphic is rotated (using a mouse) the cell size changes which causes the whole notebook to re-adjust when the mouse is released making it hard to stay focussed on a particular part of the graphic. Is it possible to prevent the cell size from changing when a 3D graphic is rotated?

geordie

Posted 2013-05-16T00:50:39.397

Reputation: 3 511

3I think you can try SphericalRegion -> True – xslittlegrass – 2013-05-16T00:57:44.663

2Also set ImagePadding -> 15 or some other value, in addition to SphericalRegion -> True. (Without this, the changing axes labels can cause the image to shift.) – Michael E2 – 2013-05-16T01:29:21.790

Answers

14

You could use RotationAction -> "Clip". You will find that this also drastically improves interactive rotation performance on complex graphics. It often produces a lot of extra white space around the plot, but that can be controlled with ViewAngle if necessary. ViewAngle by itself will also fix the viewpoint which has the same effect, so you may use that too.

ListPointPlot3D[
 Table[Sin[i] Cos[j], {i, -5, 5, .25}, {j, -5, 5, .25}], 
 ColorFunction -> "Rainbow",
 ViewAngle -> 30 Degree
]

Mr.Wizard

Posted 2013-05-16T00:50:39.397

Reputation: 259 163

This seems to fix the problem nicely! Many thanks. – geordie – 2013-05-16T05:13:54.980