1
$\begingroup$

I had a quick question regarding tick placement in 3D plots. Is there a way to change the positioning the placement of ticks in ContourPlot3D? For instance, I want to place the ticks inwards although on the opposite edges of the box (opposite to the "default" settings). I am using Mathematica 12.3

An MWE would be:

ContourPlot3D[x^2 + y^2 + z^2 == 1, {x, 0, 1}, {y, 0, 1}, {z, 0, 1}, AxesLabel -> Automatic]

which produces (sans the hand-drawn ellipses)

enter image description here

where the ticks are placed on the left and bottom edges ({y=0,z=0}, {x=0, z=1} and {x=0,y=0} edges). What if instead I want to place the axes ticks on edges given by ({y=0,z=0}, {x=1, z=0} and {x=1,y=1}), specifically the edges marked with the ellipses (one of them is the same as with the default options)?

Thanks

$\endgroup$
2
  • $\begingroup$ ContourPlot3D[x^2 + y^2 + z^2 == 1, {x, 0, 1}, {y, 0, 1}, {z, 0, 1}, AxesLabel -> Automatic, AxesEdge -> {Automatic, {1, -1}, {1, 1}}] $\endgroup$
    – Bob Hanlon
    Commented Aug 24, 2022 at 4:10
  • $\begingroup$ Welcome to the Mathematica Stack Exchange. The introductory book written by the inventor is a good learning resource. There is a fast intro for math students as well as a fast intro for programmers to choose from. $\endgroup$
    – Syed
    Commented Aug 24, 2022 at 12:12

1 Answer 1

0
$\begingroup$

Seems to be answered How could I located Ticks on certain ridge/edge in cube box in Graphics3D/Plot3D

The answer is to use AxesEdge option

$\endgroup$
1
  • 1
    $\begingroup$ Your answer would be more appropriate as a comment., I believe. $\endgroup$
    – bbgodfrey
    Commented Aug 24, 2022 at 12:12

Your Answer

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

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