view is not fixed completely regardless of vewpointAutorotating 3D plotsBuilding a molecule viewer: aesthetic rotationsHow to make a 3D plot auto-rotate?View inside the roomConstant orientation of graphics in Graphics3DAlign ColorBar (axislabel) to be parallel to the y-axis for any view-angleChanging the Rotate behavior of a 3D graphicsA way to show all the 3D curve, with view still centered on 0, 0, 0Graph a cylinder moving in 3D
Defending Castle from Zombies
What was the point of "Substance"?
Federal Pacific 200a main panel problem with oversized 100a 2pole breaker
Why does this London Underground poster from 1924 have a Star of David atop a Christmas tree?
How to prevent a hosting company from accessing a VM's encryption keys?
What is the name of this plot that has rows with two connected dots?
Talk interpreter
Is the Amazon rainforest the "world's lungs"?
Is this password scheme legit?
Alternatives to Network Backup
How could a self contained organic body propel itself in space
Is a memoized pure function itself considered pure?
How do I insert two edge loops equally spaced from the edges?
Does trying to charm an uncharmable creature cost a spell slot?
Videos of surgery
What to do about my 1-month-old boy peeing through diapers?
How to say "I only speak one which is English." in French?
How to force GCC to assume that a floating-point expression is non-negative?
A first "Hangman" game in Python
Can a paladin prepare more spells if they didn't cast any the previous day?
Is Nikon d500 a good fit for nature and ambient-lighting portraits and occasional other uses?
Number of Fingers for a Math Oriented Race
How many petaflops does it take to land on the moon? What does Artemis need with an Aitken?
Can I take a boxed bicycle on a German train?
view is not fixed completely regardless of vewpoint
Autorotating 3D plotsBuilding a molecule viewer: aesthetic rotationsHow to make a 3D plot auto-rotate?View inside the roomConstant orientation of graphics in Graphics3DAlign ColorBar (axislabel) to be parallel to the y-axis for any view-angleChanging the Rotate behavior of a 3D graphicsA way to show all the 3D curve, with view still centered on 0, 0, 0Graph a cylinder moving in 3D
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
$begingroup$
If I run code
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1]
the output is
After rotating (by mouse click and drag) the output in some direction, and run the same code again
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1]
then the output becomes
Again, rotate the output in some direction, and run the same code
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1]
then the output becomes
I knew that with ViewPoint option, Mathematica tries to fix 'a kind of view property'. The code stated above, will not generate graphics like
But also I knew that it is not enough to fix the view completely, with ViewPoint option only.
How can I completely fix the view ? For example, How can I generate
from a certain code, with 100% assurance, regardless of the state (what I've done so far since starting mathematica program) of Mathematica ?
graphics3d
$endgroup$
add a comment |
$begingroup$
If I run code
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1]
the output is
After rotating (by mouse click and drag) the output in some direction, and run the same code again
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1]
then the output becomes
Again, rotate the output in some direction, and run the same code
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1]
then the output becomes
I knew that with ViewPoint option, Mathematica tries to fix 'a kind of view property'. The code stated above, will not generate graphics like
But also I knew that it is not enough to fix the view completely, with ViewPoint option only.
How can I completely fix the view ? For example, How can I generate
from a certain code, with 100% assurance, regardless of the state (what I've done so far since starting mathematica program) of Mathematica ?
graphics3d
$endgroup$
1
$begingroup$
The FE is clever(ish) about how it handles stuff like this. If it sees a followingOutput
cell with aGraphics
expression it tries to preserve the options that expression currently has. That's what you're running into. Just delete the cell if it's an issue.
$endgroup$
– b3m2a1
8 hours ago
2
$begingroup$
try (1) setting an explicit value forViewVertical
and (2) adding the optionPreserveImageOptions ->True
. E.g., try ifGraphics3D[Cuboid[], ViewPoint -> 1, 1, 1, ViewVertical -> -0.3, 0.6, 0.7, PreserveImageOptions -> True]
works.
$endgroup$
– kglr
8 hours ago
1
$begingroup$
@b3m2a1 Too clever I'd say!
$endgroup$
– Chris K
7 hours ago
add a comment |
$begingroup$
If I run code
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1]
the output is
After rotating (by mouse click and drag) the output in some direction, and run the same code again
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1]
then the output becomes
Again, rotate the output in some direction, and run the same code
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1]
then the output becomes
I knew that with ViewPoint option, Mathematica tries to fix 'a kind of view property'. The code stated above, will not generate graphics like
But also I knew that it is not enough to fix the view completely, with ViewPoint option only.
How can I completely fix the view ? For example, How can I generate
from a certain code, with 100% assurance, regardless of the state (what I've done so far since starting mathematica program) of Mathematica ?
graphics3d
$endgroup$
If I run code
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1]
the output is
After rotating (by mouse click and drag) the output in some direction, and run the same code again
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1]
then the output becomes
Again, rotate the output in some direction, and run the same code
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1]
then the output becomes
I knew that with ViewPoint option, Mathematica tries to fix 'a kind of view property'. The code stated above, will not generate graphics like
But also I knew that it is not enough to fix the view completely, with ViewPoint option only.
How can I completely fix the view ? For example, How can I generate
from a certain code, with 100% assurance, regardless of the state (what I've done so far since starting mathematica program) of Mathematica ?
graphics3d
graphics3d
edited 8 hours ago
imida k
asked 8 hours ago
imida kimida k
683 bronze badges
683 bronze badges
1
$begingroup$
The FE is clever(ish) about how it handles stuff like this. If it sees a followingOutput
cell with aGraphics
expression it tries to preserve the options that expression currently has. That's what you're running into. Just delete the cell if it's an issue.
$endgroup$
– b3m2a1
8 hours ago
2
$begingroup$
try (1) setting an explicit value forViewVertical
and (2) adding the optionPreserveImageOptions ->True
. E.g., try ifGraphics3D[Cuboid[], ViewPoint -> 1, 1, 1, ViewVertical -> -0.3, 0.6, 0.7, PreserveImageOptions -> True]
works.
$endgroup$
– kglr
8 hours ago
1
$begingroup$
@b3m2a1 Too clever I'd say!
$endgroup$
– Chris K
7 hours ago
add a comment |
1
$begingroup$
The FE is clever(ish) about how it handles stuff like this. If it sees a followingOutput
cell with aGraphics
expression it tries to preserve the options that expression currently has. That's what you're running into. Just delete the cell if it's an issue.
$endgroup$
– b3m2a1
8 hours ago
2
$begingroup$
try (1) setting an explicit value forViewVertical
and (2) adding the optionPreserveImageOptions ->True
. E.g., try ifGraphics3D[Cuboid[], ViewPoint -> 1, 1, 1, ViewVertical -> -0.3, 0.6, 0.7, PreserveImageOptions -> True]
works.
$endgroup$
– kglr
8 hours ago
1
$begingroup$
@b3m2a1 Too clever I'd say!
$endgroup$
– Chris K
7 hours ago
1
1
$begingroup$
The FE is clever(ish) about how it handles stuff like this. If it sees a following
Output
cell with a Graphics
expression it tries to preserve the options that expression currently has. That's what you're running into. Just delete the cell if it's an issue.$endgroup$
– b3m2a1
8 hours ago
$begingroup$
The FE is clever(ish) about how it handles stuff like this. If it sees a following
Output
cell with a Graphics
expression it tries to preserve the options that expression currently has. That's what you're running into. Just delete the cell if it's an issue.$endgroup$
– b3m2a1
8 hours ago
2
2
$begingroup$
try (1) setting an explicit value for
ViewVertical
and (2) adding the option PreserveImageOptions ->True
. E.g., try if Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1, ViewVertical -> -0.3, 0.6, 0.7, PreserveImageOptions -> True]
works.$endgroup$
– kglr
8 hours ago
$begingroup$
try (1) setting an explicit value for
ViewVertical
and (2) adding the option PreserveImageOptions ->True
. E.g., try if Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1, ViewVertical -> -0.3, 0.6, 0.7, PreserveImageOptions -> True]
works.$endgroup$
– kglr
8 hours ago
1
1
$begingroup$
@b3m2a1 Too clever I'd say!
$endgroup$
– Chris K
7 hours ago
$begingroup$
@b3m2a1 Too clever I'd say!
$endgroup$
– Chris K
7 hours ago
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
Set an explicit value for ViewPoint
and for ViewVertical
.
Add the option PreserveImageOptions -> True
if you want to preserve other options (such as ImageSize
) set interactively, PreserveImageOptions -> False
if you want them to revert to the original values after interactive changes:
Graphics3D[Cuboid[],
ViewPoint -> 1, 1, 1,
ViewVertical -> 0.5, 0, 1,
PreserveImageOptions -> True]
Graphics3D[Cuboid[],
ViewPoint -> 1, 1, 1,
ViewVertical -> 0.5, 0, 1,
PreserveImageOptions -> False]
$endgroup$
add a comment |
$begingroup$
We can find the appropriate options from this input:
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1] // AbsoluteOptions
(*AlignmentPoint -> Center, AspectRatio -> Automatic,
AutomaticImageSize -> False, Axes -> False, AxesEdge -> Automatic,
AxesLabel -> None, AxesOrigin -> Automatic, AxesStyle -> ,
Background -> None, BaselinePosition -> Automatic, BaseStyle -> ,
Boxed -> True, BoxRatios -> 1., 1., 1., BoxStyle -> ,
ClipPlanes -> None, ClipPlanesStyle -> Automatic,
ColorOutput -> Automatic, ContentSelectable -> Automatic,
ControllerLinking -> Automatic, ControllerMethod -> Automatic,
ControllerPath -> Automatic, CoordinatesToolOptions -> Automatic,
DisplayFunction -> Identity, Epilog -> , FaceGrids -> None,
FaceGridsStyle -> , FormatType -> TraditionalForm,
ImageMargins -> 0., ImagePadding -> All, ImageSize -> Automatic,
ImageSizeRaw -> Automatic, LabelStyle -> , Lighting -> Automatic,
Method -> Automatic, PlotLabel -> None,
PlotRange -> 0., 1., 0., 1., 0., 1.,
PlotRangePadding -> Automatic, PlotRegion -> Automatic,
PreserveImageOptions -> Automatic, Prolog -> ,
RotationAction -> "Fit", SphericalRegion -> False,
Ticks -> Automatic, TicksStyle -> , TouchscreenAutoZoom -> False,
ViewAngle -> Automatic, ViewCenter -> 0.5, 0.5, 0.5,
ViewMatrix -> Automatic, ViewPoint -> 1., 1., 1.,
ViewProjection -> Automatic, ViewRange -> All,
ViewVector -> Automatic, ViewVertical -> 0., 0., 1.*)
Then, the desired & appropriate parameters may be set:
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1,
ViewCenter -> 0.5`, 0.5`, 0.5`, ViewVertical -> 0.`, 0.`, 1.`]
Use AbsoluteOptions
to determine the definitive options for the current viewpoint you have outputted. From here, copy and paste these into your desired definition. What I mean by this is that you take your Cuboid
output, defined with the noted Viewpoint
, and then type //AbsoluteOptions
after the output. Evaluate this and use the output to be applied to your definition.
I have no experience with the answer of user @kglr, however, I can say with absolute certainty and confidence that if you find a viewpoint you like, perform the above procedure and you will have the desired output every time you evaluate it, just as you need/ask for here.
Hope this helps!
$endgroup$
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "387"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f204424%2fview-is-not-fixed-completely-regardless-of-vewpoint%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Set an explicit value for ViewPoint
and for ViewVertical
.
Add the option PreserveImageOptions -> True
if you want to preserve other options (such as ImageSize
) set interactively, PreserveImageOptions -> False
if you want them to revert to the original values after interactive changes:
Graphics3D[Cuboid[],
ViewPoint -> 1, 1, 1,
ViewVertical -> 0.5, 0, 1,
PreserveImageOptions -> True]
Graphics3D[Cuboid[],
ViewPoint -> 1, 1, 1,
ViewVertical -> 0.5, 0, 1,
PreserveImageOptions -> False]
$endgroup$
add a comment |
$begingroup$
Set an explicit value for ViewPoint
and for ViewVertical
.
Add the option PreserveImageOptions -> True
if you want to preserve other options (such as ImageSize
) set interactively, PreserveImageOptions -> False
if you want them to revert to the original values after interactive changes:
Graphics3D[Cuboid[],
ViewPoint -> 1, 1, 1,
ViewVertical -> 0.5, 0, 1,
PreserveImageOptions -> True]
Graphics3D[Cuboid[],
ViewPoint -> 1, 1, 1,
ViewVertical -> 0.5, 0, 1,
PreserveImageOptions -> False]
$endgroup$
add a comment |
$begingroup$
Set an explicit value for ViewPoint
and for ViewVertical
.
Add the option PreserveImageOptions -> True
if you want to preserve other options (such as ImageSize
) set interactively, PreserveImageOptions -> False
if you want them to revert to the original values after interactive changes:
Graphics3D[Cuboid[],
ViewPoint -> 1, 1, 1,
ViewVertical -> 0.5, 0, 1,
PreserveImageOptions -> True]
Graphics3D[Cuboid[],
ViewPoint -> 1, 1, 1,
ViewVertical -> 0.5, 0, 1,
PreserveImageOptions -> False]
$endgroup$
Set an explicit value for ViewPoint
and for ViewVertical
.
Add the option PreserveImageOptions -> True
if you want to preserve other options (such as ImageSize
) set interactively, PreserveImageOptions -> False
if you want them to revert to the original values after interactive changes:
Graphics3D[Cuboid[],
ViewPoint -> 1, 1, 1,
ViewVertical -> 0.5, 0, 1,
PreserveImageOptions -> True]
Graphics3D[Cuboid[],
ViewPoint -> 1, 1, 1,
ViewVertical -> 0.5, 0, 1,
PreserveImageOptions -> False]
edited 26 mins ago
answered 7 hours ago
kglrkglr
214k10 gold badges244 silver badges488 bronze badges
214k10 gold badges244 silver badges488 bronze badges
add a comment |
add a comment |
$begingroup$
We can find the appropriate options from this input:
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1] // AbsoluteOptions
(*AlignmentPoint -> Center, AspectRatio -> Automatic,
AutomaticImageSize -> False, Axes -> False, AxesEdge -> Automatic,
AxesLabel -> None, AxesOrigin -> Automatic, AxesStyle -> ,
Background -> None, BaselinePosition -> Automatic, BaseStyle -> ,
Boxed -> True, BoxRatios -> 1., 1., 1., BoxStyle -> ,
ClipPlanes -> None, ClipPlanesStyle -> Automatic,
ColorOutput -> Automatic, ContentSelectable -> Automatic,
ControllerLinking -> Automatic, ControllerMethod -> Automatic,
ControllerPath -> Automatic, CoordinatesToolOptions -> Automatic,
DisplayFunction -> Identity, Epilog -> , FaceGrids -> None,
FaceGridsStyle -> , FormatType -> TraditionalForm,
ImageMargins -> 0., ImagePadding -> All, ImageSize -> Automatic,
ImageSizeRaw -> Automatic, LabelStyle -> , Lighting -> Automatic,
Method -> Automatic, PlotLabel -> None,
PlotRange -> 0., 1., 0., 1., 0., 1.,
PlotRangePadding -> Automatic, PlotRegion -> Automatic,
PreserveImageOptions -> Automatic, Prolog -> ,
RotationAction -> "Fit", SphericalRegion -> False,
Ticks -> Automatic, TicksStyle -> , TouchscreenAutoZoom -> False,
ViewAngle -> Automatic, ViewCenter -> 0.5, 0.5, 0.5,
ViewMatrix -> Automatic, ViewPoint -> 1., 1., 1.,
ViewProjection -> Automatic, ViewRange -> All,
ViewVector -> Automatic, ViewVertical -> 0., 0., 1.*)
Then, the desired & appropriate parameters may be set:
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1,
ViewCenter -> 0.5`, 0.5`, 0.5`, ViewVertical -> 0.`, 0.`, 1.`]
Use AbsoluteOptions
to determine the definitive options for the current viewpoint you have outputted. From here, copy and paste these into your desired definition. What I mean by this is that you take your Cuboid
output, defined with the noted Viewpoint
, and then type //AbsoluteOptions
after the output. Evaluate this and use the output to be applied to your definition.
I have no experience with the answer of user @kglr, however, I can say with absolute certainty and confidence that if you find a viewpoint you like, perform the above procedure and you will have the desired output every time you evaluate it, just as you need/ask for here.
Hope this helps!
$endgroup$
add a comment |
$begingroup$
We can find the appropriate options from this input:
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1] // AbsoluteOptions
(*AlignmentPoint -> Center, AspectRatio -> Automatic,
AutomaticImageSize -> False, Axes -> False, AxesEdge -> Automatic,
AxesLabel -> None, AxesOrigin -> Automatic, AxesStyle -> ,
Background -> None, BaselinePosition -> Automatic, BaseStyle -> ,
Boxed -> True, BoxRatios -> 1., 1., 1., BoxStyle -> ,
ClipPlanes -> None, ClipPlanesStyle -> Automatic,
ColorOutput -> Automatic, ContentSelectable -> Automatic,
ControllerLinking -> Automatic, ControllerMethod -> Automatic,
ControllerPath -> Automatic, CoordinatesToolOptions -> Automatic,
DisplayFunction -> Identity, Epilog -> , FaceGrids -> None,
FaceGridsStyle -> , FormatType -> TraditionalForm,
ImageMargins -> 0., ImagePadding -> All, ImageSize -> Automatic,
ImageSizeRaw -> Automatic, LabelStyle -> , Lighting -> Automatic,
Method -> Automatic, PlotLabel -> None,
PlotRange -> 0., 1., 0., 1., 0., 1.,
PlotRangePadding -> Automatic, PlotRegion -> Automatic,
PreserveImageOptions -> Automatic, Prolog -> ,
RotationAction -> "Fit", SphericalRegion -> False,
Ticks -> Automatic, TicksStyle -> , TouchscreenAutoZoom -> False,
ViewAngle -> Automatic, ViewCenter -> 0.5, 0.5, 0.5,
ViewMatrix -> Automatic, ViewPoint -> 1., 1., 1.,
ViewProjection -> Automatic, ViewRange -> All,
ViewVector -> Automatic, ViewVertical -> 0., 0., 1.*)
Then, the desired & appropriate parameters may be set:
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1,
ViewCenter -> 0.5`, 0.5`, 0.5`, ViewVertical -> 0.`, 0.`, 1.`]
Use AbsoluteOptions
to determine the definitive options for the current viewpoint you have outputted. From here, copy and paste these into your desired definition. What I mean by this is that you take your Cuboid
output, defined with the noted Viewpoint
, and then type //AbsoluteOptions
after the output. Evaluate this and use the output to be applied to your definition.
I have no experience with the answer of user @kglr, however, I can say with absolute certainty and confidence that if you find a viewpoint you like, perform the above procedure and you will have the desired output every time you evaluate it, just as you need/ask for here.
Hope this helps!
$endgroup$
add a comment |
$begingroup$
We can find the appropriate options from this input:
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1] // AbsoluteOptions
(*AlignmentPoint -> Center, AspectRatio -> Automatic,
AutomaticImageSize -> False, Axes -> False, AxesEdge -> Automatic,
AxesLabel -> None, AxesOrigin -> Automatic, AxesStyle -> ,
Background -> None, BaselinePosition -> Automatic, BaseStyle -> ,
Boxed -> True, BoxRatios -> 1., 1., 1., BoxStyle -> ,
ClipPlanes -> None, ClipPlanesStyle -> Automatic,
ColorOutput -> Automatic, ContentSelectable -> Automatic,
ControllerLinking -> Automatic, ControllerMethod -> Automatic,
ControllerPath -> Automatic, CoordinatesToolOptions -> Automatic,
DisplayFunction -> Identity, Epilog -> , FaceGrids -> None,
FaceGridsStyle -> , FormatType -> TraditionalForm,
ImageMargins -> 0., ImagePadding -> All, ImageSize -> Automatic,
ImageSizeRaw -> Automatic, LabelStyle -> , Lighting -> Automatic,
Method -> Automatic, PlotLabel -> None,
PlotRange -> 0., 1., 0., 1., 0., 1.,
PlotRangePadding -> Automatic, PlotRegion -> Automatic,
PreserveImageOptions -> Automatic, Prolog -> ,
RotationAction -> "Fit", SphericalRegion -> False,
Ticks -> Automatic, TicksStyle -> , TouchscreenAutoZoom -> False,
ViewAngle -> Automatic, ViewCenter -> 0.5, 0.5, 0.5,
ViewMatrix -> Automatic, ViewPoint -> 1., 1., 1.,
ViewProjection -> Automatic, ViewRange -> All,
ViewVector -> Automatic, ViewVertical -> 0., 0., 1.*)
Then, the desired & appropriate parameters may be set:
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1,
ViewCenter -> 0.5`, 0.5`, 0.5`, ViewVertical -> 0.`, 0.`, 1.`]
Use AbsoluteOptions
to determine the definitive options for the current viewpoint you have outputted. From here, copy and paste these into your desired definition. What I mean by this is that you take your Cuboid
output, defined with the noted Viewpoint
, and then type //AbsoluteOptions
after the output. Evaluate this and use the output to be applied to your definition.
I have no experience with the answer of user @kglr, however, I can say with absolute certainty and confidence that if you find a viewpoint you like, perform the above procedure and you will have the desired output every time you evaluate it, just as you need/ask for here.
Hope this helps!
$endgroup$
We can find the appropriate options from this input:
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1] // AbsoluteOptions
(*AlignmentPoint -> Center, AspectRatio -> Automatic,
AutomaticImageSize -> False, Axes -> False, AxesEdge -> Automatic,
AxesLabel -> None, AxesOrigin -> Automatic, AxesStyle -> ,
Background -> None, BaselinePosition -> Automatic, BaseStyle -> ,
Boxed -> True, BoxRatios -> 1., 1., 1., BoxStyle -> ,
ClipPlanes -> None, ClipPlanesStyle -> Automatic,
ColorOutput -> Automatic, ContentSelectable -> Automatic,
ControllerLinking -> Automatic, ControllerMethod -> Automatic,
ControllerPath -> Automatic, CoordinatesToolOptions -> Automatic,
DisplayFunction -> Identity, Epilog -> , FaceGrids -> None,
FaceGridsStyle -> , FormatType -> TraditionalForm,
ImageMargins -> 0., ImagePadding -> All, ImageSize -> Automatic,
ImageSizeRaw -> Automatic, LabelStyle -> , Lighting -> Automatic,
Method -> Automatic, PlotLabel -> None,
PlotRange -> 0., 1., 0., 1., 0., 1.,
PlotRangePadding -> Automatic, PlotRegion -> Automatic,
PreserveImageOptions -> Automatic, Prolog -> ,
RotationAction -> "Fit", SphericalRegion -> False,
Ticks -> Automatic, TicksStyle -> , TouchscreenAutoZoom -> False,
ViewAngle -> Automatic, ViewCenter -> 0.5, 0.5, 0.5,
ViewMatrix -> Automatic, ViewPoint -> 1., 1., 1.,
ViewProjection -> Automatic, ViewRange -> All,
ViewVector -> Automatic, ViewVertical -> 0., 0., 1.*)
Then, the desired & appropriate parameters may be set:
Graphics3D[Cuboid[], ViewPoint -> 1, 1, 1,
ViewCenter -> 0.5`, 0.5`, 0.5`, ViewVertical -> 0.`, 0.`, 1.`]
Use AbsoluteOptions
to determine the definitive options for the current viewpoint you have outputted. From here, copy and paste these into your desired definition. What I mean by this is that you take your Cuboid
output, defined with the noted Viewpoint
, and then type //AbsoluteOptions
after the output. Evaluate this and use the output to be applied to your definition.
I have no experience with the answer of user @kglr, however, I can say with absolute certainty and confidence that if you find a viewpoint you like, perform the above procedure and you will have the desired output every time you evaluate it, just as you need/ask for here.
Hope this helps!
edited 1 hour ago
answered 2 hours ago
CA TrevillianCA Trevillian
6161 gold badge2 silver badges14 bronze badges
6161 gold badge2 silver badges14 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Mathematica Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f204424%2fview-is-not-fixed-completely-regardless-of-vewpoint%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
$begingroup$
The FE is clever(ish) about how it handles stuff like this. If it sees a following
Output
cell with aGraphics
expression it tries to preserve the options that expression currently has. That's what you're running into. Just delete the cell if it's an issue.$endgroup$
– b3m2a1
8 hours ago
2
$begingroup$
try (1) setting an explicit value for
ViewVertical
and (2) adding the optionPreserveImageOptions ->True
. E.g., try ifGraphics3D[Cuboid[], ViewPoint -> 1, 1, 1, ViewVertical -> -0.3, 0.6, 0.7, PreserveImageOptions -> True]
works.$endgroup$
– kglr
8 hours ago
1
$begingroup$
@b3m2a1 Too clever I'd say!
$endgroup$
– Chris K
7 hours ago