3
$\begingroup$

I am making a Plot3D for an illustration. In this case, I have to find a ViewPoint which best shows the plot peculiarities. Sometimes, after the good ViewPoint has been found the plot hides some of the AxesLabel and Ticks. The latter is not desired.

My question: Is there a way to control where the AxesLabels and Ticks will show up?

I mean that I use the option Boxed->True, and would like to be able to choose, at what edges of the box the AxesLabels and Ticks appear.

I understand that I can remove the AxesLabel and Ticks at all and then draw them programmatically myself, and know how to do that. This is, however, time-consuming, and I would like to avoid it, if possible.

$\endgroup$
7
  • 2
    $\begingroup$ Are we talking about AxesEdge? $\endgroup$
    – Syed
    Apr 28 at 12:20
  • $\begingroup$ I think I had the same issue and noone helped: mathematica.stackexchange.com/questions/275532/… $\endgroup$
    – Lechuu
    Apr 28 at 12:31
  • 1
    $\begingroup$ @Syed Yes. Up to now, I did not know this option and solved the problem with its use. $\endgroup$ Apr 28 at 12:51
  • $\begingroup$ No link to AxesEdge doc page can be found on the pages for Boxed or FaceGrids or even Ticks, not to mention Plot3D. This aspect can certainly be improved. $\endgroup$
    – Syed
    Apr 28 at 13:23
  • $\begingroup$ @Syed Yes, that's why I never saw this option in the past. $\endgroup$ Apr 28 at 13:31

1 Answer 1

2
$\begingroup$

Use Manipulate to explore the AxesEdge option

Clear["Global`*"]

opt = Join[{Automatic, None}, Tuples[{-1, 1}, 2]];

Manipulate[
 Graphics3D[{Opacity[0.3], Sphere[]},
  Axes -> True,
  AxesLabel -> (Style[#, 14, Bold] & /@ {"x", "y", "z"}),
  AxesEdge -> {yz, xz, xy},
  SphericalRegion -> True],
 Style["AxesEdge Option", 16],
 {{yz, Automatic, "x-axis"}, opt, ControlType -> SetterBar},
 {{xz, Automatic, "y-axis"}, opt, ControlType -> SetterBar},
 {{xy, Automatic, "z-axis"}, opt, ControlType -> SetterBar},
 TrackedSymbols :> {yz, xz, xy}]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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