Two quick questions from Mathematica

  • How to remove numbers on the x axis only not on the y axis?
  • Is it possible to shift the y axis without shifting the functions? I mean, instead of having the y axis at x = 0, can I get it at x = -5?
+5
source share
2 answers

With most of the options controlling the axes, you can use a list of two values ​​to indicate different behavior for the two axes. How do you delete numbers now? The only way I can think of it is to manually specify the location of ticks, without labels, something like this:

Ticks -> {{{0, ""}, {1, ""}, {2, ""}}, Automatic}

, , ? , , , , .

, AxesOrigin; AxesOrigin->{-5,0}.

+5

Ticks, FrameTicks, Frame -> True. , , ContourPlot DensityPlot, (.. Frame -> True). Ticks -

Ticks -> {<x ticks>, <y ticks>, <z ticks>}

z ticks 3D-. FrameTicks

FrameTicks -> { {left, right}, {bottom, top} }

Ticks FrameTicks Automatic, None . , x,

Ticks -> { None, Automatic }

FrameTicks -> { {Automatic, Automatic}, {None, None} }

, @Jefromi , . Ticks FrameTicks , , . , , - , , - Mathematica .

, AxesOrigin -> {-5, 0}, @Jefromi.

+5

All Articles