Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tick marks don't scale in graphics -- why, and how to fix this?

As we rasterize 3D images at higher and higher resolution, every image element should get proportionally bigger and bigger. However, tick marks stop growing after a while. Is there a way to ensure that tick marks should grown proportionally to the rest of the graphic, like text does?


Illustration:

g = Graphics3D[Sphere[], Axes -> True, ImageSize -> 200]

Table[Image[
  ImageResize[Rasterize[g, "Image", ImageResolution -> n 72], 
   Scaled[1/n]], Magnification -> 1], {n, 6}]

Mathematica graphics

Column[Table[
   Image[Rasterize[g, "Image", ImageResolution -> n 72], Magnification -> 1], 
   {n, 6}], Alignment -> Left]

Click here to see the output (too big to be conveniently inlined)

like image 584
Szabolcs Avatar asked Jan 10 '12 15:01

Szabolcs


1 Answers

See http://reference.wolfram.com/mathematica/ref/Ticks.html "More information" and "Application" sections. You can specify tick length like this:

Tick mark sizePlot 3D with custom tick marks

like image 114
Slava Nadvorny Avatar answered Sep 22 '22 14:09

Slava Nadvorny