Want an easy quick way to make tiki 3D graphics longer

I know that there are many ways even for some good packages, but I find that these methods are basically too complicated for me.

So, what is an easy quick way to make 3D graphics ticks (in fact, the plot generated by RegionPlot3D ) longer?

I don't care how efficient the code is.

Thanks!:)

+6
source share
3 answers

You can control the tick lengths in the Ticks option. For instance. Here they are set to 0.06 in one direction:

 ticks = {#, #, {0, 0.06}} & /@ (Range[11] - 6); RegionPlot3D[xyz < 1, {x, -5, 5}, {y, -5, 5}, {z, -5, 5}, PlotStyle -> Directive[Yellow, Opacity[0.5]], Mesh -> None, Ticks -> Table[ticks, {3}], AxesEdge -> {{-1, -1}, None, None}] 

enter image description here

+7
source

You can use the function for Ticks . This particular function comes from the Ticks documentation , (Click "Generalizations and Extensions.")

 ticks[min_, max_] := Table[If[EvenQ[i], {i, i, .06, Red}, {i, i, .02, Blue}], {i, Ceiling[min], Floor[max], 1}] Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}, Ticks -> ticks] 

ticks

You can use its variation to highlight major and minor ticks (for example, integer and tenth values. This function is also directly from the documentation (in the "Applications" section).

 ticks[min_, max_] := Join[Table[{i, Style[i, 12], {.04, 0}}, {i, Ceiling[min], Floor[max]}], Table[{j + .5, , {.02, 0}}, {j, Round[min], Round[max - 1], 1}]] 

ticks2

+7
source

Sorry, I could not resist:

 tick = Import["http://www.salamatvet.com/images/tick-1.jpg"]; Plot[ Sin[x], {x, 0, 10}, Method -> {"AxesInFront" -> False}, Ticks -> {Table[{i, Labeled[i, Image[tick, ImageSize -> 30]]}, {i, 2, 10, 2}]}] 

enter image description here

Tick ​​is a tick, this is a tick ...

Thanks to Alexei for offering AxesInFront .

+6
source

Source: https://habr.com/ru/post/898436/


All Articles