3
$\begingroup$

So I have a 3D graphics with axes and ticks, but sometimes when I rotate the grahics the axes change their location to different edges, and I want this to be static. How do I do this?

$\endgroup$

1 Answer 1

3
$\begingroup$

Use the option AxesEdge:

The first example from AxesEdge >> Applications:

Plot3D[Sin[x y], {x, 0, 4}, {y, 0, 4}, 
 AxesEdge -> {{-1, -1}, {-1, -1}, {-1, -1}}, Mesh -> None, 
 PlotStyle -> Opacity[.5], Boxed -> False]

enter image description here

Use AxesEdge -> {{1, 1}, {-1, 1}, {-1, -1}} to get

enter image description here

and AxesEdge -> {{-1, -1}, {1, -1}, {-1, -1}} to get

enter image description here

The first case above (where all three axes meet at a single point) can also be obtained using the option AxesOrigin:

Plot3D[Sin[x y], {x, 0, 4}, {y, 0, 4}, AxesOrigin -> {0, 0, -1}, 
 Mesh -> None, PlotStyle -> Opacity[.5], Boxed -> False]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.