我注意到,如果我使用鼠标旋转3D图像,当我使用鼠标旋转图像时,笔记本界面本身会有一些抖动或抖动。
也就是说,3D图像本身所在的框架确实会在笔记本上上下移动一点。
我尝试了我所知道的所有技巧来防止这种情况,设置不同的ImagePadding,PlotRangePadding,ImageMargins,PlotRange,ContentSize和其他所有东西,但没有成功。
这里有一个小示例,我只是使用RegionPlot3D作为示例,但任何3D绘图都可以。
Manipulate[
RegionPlot3D[True,
{x,1,2},{y,1,2},{z,1,2},
AxesLabel-> label,
ImageSize->{340,450},
ImagePadding->10,
ImageMargins->10,
MeshStyle->Automatic,
PlotRangePadding->1,
AxesOrigin->{0,0,0},
PlotRange->{{0,2},{0,2},{0,2}},
Boxed->False],
{n,0,ControlType->None},
SynchronousUpdating->False,
ContinuousAction->False
]现在,如果你运行上面的程序,并使用鼠标旋转小立方体,你会开始注意到,一旦你松开鼠标,笔记本确实有一点抖动。请随意尝试任何其他设置。
这很烦人,因为我不喜欢这种摇晃的效果。让我头晕。
这里的任何专家都可能知道我在Plot命令本身中忽略的是选项设置,还是其他什么?当我用鼠标在里面旋转图像时,我希望绘图框架和笔记本本身不要摇晃。当释放鼠标时,问题再次出现。
在windows7上的Mathematica 8.0.1。
谢谢--Nasser ps。我试着搜索之前是否有人问过这个问题,但没有发现什么。
发布于 2011-05-29 11:56:09
尝试:
SphericalRegion -> True 如下所示:
Manipulate[
RegionPlot3D[True, {x, 1, 2}, {y, 1, 2}, {z, 1, 2},
AxesLabel -> label, SphericalRegion -> True,
ImageSize -> {340, 450}, ImagePadding -> 10, ImageMargins -> 10,
MeshStyle -> Automatic, PlotRangePadding -> 1,
AxesOrigin -> {0, 0, 0}, PlotRange -> {{0, 2}, {0, 2}, {0, 2}},
Boxed -> False], {n, 0, ControlType -> None},
SynchronousUpdating -> False, ContinuousAction -> False]从帮助中:
With SphericalRegion->True, the image of a particular object remains consistent
in size, regardless of the orientation of the object. 编辑
此答案中的用法示例:How to create 2D (3D) animation in Wolfram Mathematica with the camera following the object?
哈!
https://stackoverflow.com/questions/6165754
复制相似问题