Mathematica: why 3D plot remember last viewpoint/rotation made to it, even after evaluating again?

不问归期 提交于 2019-12-03 03:59:11

Try:

With PreserveImageOptions->False, settings for image options from the previous
version of a graphic are always ignored.

In a Mathematica notebook, render your plot, then orient it the way you like.

Then place the cursor on the left of the PLOT OUTPUT, and type "AbsoluteOptions[" Then place the cursor on the right of the PLOT OUTPUT, and type "]" Shift-Enter

You will get a bunch of information. Look for ViewPoint and then use this as an option in your graphics. Then, you will always get the same orientation.

I like to think of re-running the Plot command as updating the graphic I have already created. After all, it does not make a second plot.

From this perspective, if I rotate or size my graphic, I do not want Mathematica to mess with that when I add a label or change a style.

However, if I delete my graphic to start over, Mathematica uses the default rotation and size.

Therefore, I find the behavior logical and appreciated.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!